load(yaml)
public
Load yaml in to a Ruby data structure. If multiple documents are
provided, the object contained in the first document will be returned.
Example:
Psych.load("--- a")
Psych.load("---\n - a\n - b")
# File ext/psych/lib/psych.rb, line 111
def self.load yaml
result = parse(yaml)
result ? result.to_ruby : result
end