Handles end_document
events with version
, tag_directives
, and implicit
styling.
A class that provides two-phase lock with a counter. See Sync_m
for details.
A module that provides a two-phase lock with a counter.
A module that provides a two-phase lock with a counter.
Create a new Alias
that points to an anchor
Create a new Psych::Nodes::Document
object.
version
is a list indicating the YAML version. tags_directives
is a list of tag directive declarations implicit
is a flag indicating whether the document will be implicitly started.
This creates a YAML document object that represents a YAML 1.1 document with one tag directive, and has an implicit start:
Psych::Nodes::Document.new( [1,1], [["!", "tag:tenderlovemaking.com,2009:"]], true )
See also Psych::Handler#start_document
Returns the root node. A Document
may only have one root node: yaml.org/spec/1.1/#id898031
Create a new Psych::Nodes::Mapping
object.
anchor
is the anchor associated with the map or nil
. tag
is the tag associated with the map or nil
. implicit
is a boolean indicating whether or not the map was implicitly started. style
is an integer indicating the mapping style.
See also Psych::Handler#start_mapping
Create a new Psych::Nodes::Node
Create a new Psych::Nodes::Scalar
object.
value
is the string value of the scalar anchor
is an associated anchor or nil tag
is an associated tag or nil plain
is a boolean value quoted
is a boolean value style
is an integer idicating the string style
See also Psych::Handler#scalar
Create a new object representing a YAML sequence.
anchor
is the anchor associated with the sequence or nil. tag
is the tag associated with the sequence or nil. implicit
a boolean indicating whether or not the sequence was implicitly started. style
is an integer indicating the list style.
Create a new Psych::Nodes::Stream
node with an encoding
that defaults to Psych::Nodes::Stream::UTF8
.
See also Psych::Handler#start_stream