Lines Matching refs:Psych
9 module Psych
13 # When using Psych.load to deserialize a YAML document, the document is
17 # In the opposite direction, when using Psych.dump, the Ruby object graph is
21 # Psych::Nodes contains all of the classes that make up the nodes of a YAML
23 # Psych::Visitors) to convert that AST to either a YAML document or to a
30 # stream = Psych::Nodes::Stream.new
31 # doc = Psych::Nodes::Document.new
32 # seq = Psych::Nodes::Sequence.new
33 # scalar = Psych::Nodes::Scalar.new('foo')
50 # A valid YAML AST *must* have one Psych::Nodes::Stream at the root. A
51 # Psych::Nodes::Stream node must have 1 or more Psych::Nodes::Document nodes
54 # Psych::Nodes::Document nodes must have one and *only* one child. That child
57 # * Psych::Nodes::Sequence
58 # * Psych::Nodes::Mapping
59 # * Psych::Nodes::Scalar
61 # Psych::Nodes::Sequence and Psych::Nodes::Mapping nodes may have many
62 # children, but Psych::Nodes::Mapping nodes should have an even number of
65 # All of these are valid children for Psych::Nodes::Sequence and
66 # Psych::Nodes::Mapping nodes:
68 # * Psych::Nodes::Sequence
69 # * Psych::Nodes::Mapping
70 # * Psych::Nodes::Scalar
71 # * Psych::Nodes::Alias
73 # Psych::Nodes::Scalar and Psych::Nodes::Alias are both terminal nodes and