YAML::Parser#parse_documents Method
parse_documents
Iterates through objects in a YAML stream.

aYamlParser.parse_documents(
  (String or IO) io,
  Proc doc_proc
)

Parameters
io
The string or IO object to read from.
doc_proc
A procedure for handling each parsed document
Block Parameters
obj
An object containing the current document
Return Values
None

Details

This method is used by YAML::load_documents, YAML::parse_documents, and YAML::load_stream