Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > psychライブラリ > Psychモジュール > parse

singleton method Psych.parse

parse(yaml) -> object

[TODO]

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>

Psych::Nodes for more information about YAML AST.

module Psych