Mini Shell

Direktori : /opt/alt/ruby18/share/ri/1.8/system/YAML/
Upload File :
Current File : //opt/alt/ruby18/share/ri/1.8/system/YAML/each_document-c.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Calls <em>block</em> with each consecutive document in the YAML stream contained in <em>io</em>.
- !ruby/struct:SM::Flow::VERB 
  body: "  File.open( 'many-docs.yaml' ) do |yf|\n    YAML.each_document( yf ) do |ydoc|\n      ## ydoc contains the single object\n      ## from the YAML document\n    end\n  end\n"
full_name: YAML::each_document
is_singleton: true
name: each_document
params: ( io, &block )
visibility: public

Zerion Mini Shell 1.0