Flowdock
method

parse_documents

Importance_1
v1_8_7_72 - Show latest stable - 0 notes - Class: YAML
parse_documents( io, &doc_proc ) public

Calls block with a tree of +YAML::BaseNodes+, one tree for each consecutive document in the YAML stream contained in io.

  File.open( 'many-docs.yaml' ) do |yf|
    YAML.parse_documents( yf ) do |ydoc|
      ## ydoc contains a tree of nodes
      ## from the YAML document
    end
  end
Show source
Register or log in to add new notes.