parse(yaml)
Parse a YAML string in yaml. Returns the first object of a YAML AST.
Example:
Psych.parse("---\n - a\n - b") # => #<Psych::Nodes::Sequence:0x00>
See Psych::Nodes for more information about YAML AST.
# File ext/psych/lib/psych.rb, line 124 def self.parse yaml children = parse_stream(yaml).children children.empty? ? false : children.first.children.first end