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

singleton method Psych.parse_stream

parse_stream(yaml)

[TODO]

Parse a YAML string in +yaml+. Returns the full AST for the YAML document. This method can handle multiple YAML documents contained in +yaml+.

Example:

Psych.parse_stream("---\n - a\n - b") # => #<Psych::Nodes::Stream:0x00>

See Psych::Nodes for more information about YAML AST.

module Psych