Psych::TreeBuilder - ri - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


= Psych::TreeBuilder < Psych::Handler

(from gem psych-5.4.0)
------------------------------------------------------------------------
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.
------------------------------------------------------------------------
= Class methods:

  new

= Instance methods:

  alias
  end_document
  end_stream
  event_location
  pop
  push
  root
  scalar
  set_end_location
  set_location
  set_start_location
  start_document
  start_stream

= Attributes:

  attr_reader root


Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 07:23 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!