class

Psych::TreeBuilder

ruby latest stable - Superclass: Psych::Handler

This class works in conjunction with Psych::Parser to build an in-memory parse tree that represents a YAML document.

Example

parser = Psych::Parser.new Psych::TreeBuilder.new
parser.parse('--- foo')
tree = parser.handler.root

See Psych::Handler for documentation on the event methods used in this class.

Attributes

[R]root

Files

  • ext/psych/lib/psych/tree_builder.rb