YAML::Parser#parse Method
parse
Loads a single object from a YAML stream.

aYamlParser.parse(
  (String or IO) io
)

Parameters
io
The string or IO object to read from.
Return Values
A Ruby object

Details

This method is used by YAML::load to load a single document. In fact, YAML::load is equivalent to:

YAML::Parser.new.parse( io )
Ex. 41: YAML.load Source