Type:
Class
This class works in conjunction with Psych::Parser to build an in-memory parse tree that represents a YAML document.
Example
1 2 3 | 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.