type=class
superclass=Psych=Visitors=Visitor
included=
extended=
dynamically_included=
dynamically_extended=
library=psych
aliases=
aliasof=

Ruby オブジェクトから YAML の AST を構築するためのクラスです。

==== 例
  builder = Psych::Visitors::YAMLTree.new
  builder << { :foo => 'bar' }
  builder << ["baz", "bazbaz"]
  builder.tree # => #<Psych::Nodes::Stream ... > A stream containing two documents
  puts tree.to_yaml
  # =>
  # ---
  # :foo: bar
  # ---
  # - baz
  # - bazbaz
