end_sequence

end_sequence() Instance Public methods Called when a sequence ends.

end_stream

end_stream() Instance Public methods Called when the YAML stream ends

scalar

scalar(value, anchor, tag, plain, quoted, style) Instance Public methods Called when a scalar value is found. The scalar may have an anchor, a tag, be implicitly plain or implicitly quoted 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 the constants in Psych::Nodes::Scalar for the possible values of style Example Here

start_document

start_document(version, tag_directives, implicit) Instance Public methods Called when the document starts with the declared version, tag_directives, if the document is implicit. version will be an array of integers indicating the YAML version being dealt with, tag_directives is a list of tuples indicating the prefix and suffix of each tag, and implicit is a boolean indicating whether the document is started implicitly. Example Given the following YAML: %YAML 1.1 %TAG ! tag:tenderlo

start_mapping

start_mapping(anchor, tag, implicit, style) Instance Public methods Called when a map starts. 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 the constants in Psych::Nodes::Mapping for the possible values of style. Example Here is a YAML document that exercises most of the possible ways this method

start_sequence

start_sequence(anchor, tag, implicit, style) Instance Public methods Called when a sequence is started. 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. See the constants in Psych::Nodes::Sequence for the possible values of style. Example Here is a YAML document that exercises most of the possib

start_stream

start_stream(encoding) Instance Public methods Called with encoding when the YAML stream starts. This method is called once per stream. A stream may contain multiple documents. See the constants in Psych::Parser for the possible values of encoding.

streaming?

streaming?() Instance Public methods Is this handler a streaming handler?

new

new() Class Public methods

new

new(anchor) Class Public methods Create a new Alias that points to an anchor