method

load

Importance_1
v1_8_7_330 - Show latest stable - 0 notes - Class: YAML
load( io ) public

Load a document from the current io stream.

File.open( 'animals.yaml' ) { |yf| YAML::load( yf ) }
   #=> ['badger', 'elephant', 'tiger']

Can also load from a string.

YAML.load( "--- :locked" )
   #=> :locked
Show source
Register or log in to add new notes.