emitter.scalar(value, anchor, tag, plain, quoted, style) Instance Public methods Emit a scalar with value, anchor, tag, and a plain or quoted string type with style. See Psych::Handler#scalar
emitter.start_document(version, tags, implicit) Instance Public methods Start a document emission with YAML version, tags, and an implicit start. See Psych::Handler#start_document
emitter.start_mapping(anchor, tag, implicit, style) Instance Public methods Start emitting a YAML map with anchor, tag, an implicit start and end, and style. See Psych::Handler#start_mapping
emitter.start_sequence(anchor, tag, implicit, style) Instance Public methods Start emitting a sequence with anchor, a tag, implicit sequence start and end, along with style. See Psych::Handler#start_sequence
emitter.start_stream(encoding) Instance Public methods Start a stream emission with encoding See Psych::Handler#start_stream
new() Class Public methods
alias(anchor) Instance Public methods Called when an alias is found to anchor. anchor will be the name of the anchor found. Example Here we have an example of an array that references itself in YAML: --- &ponies - first element - *ponies &ponies is the achor, *ponies is the alias. In this case, alias is called with âponiesâ.
empty() Instance Public methods Called when an empty event happens. (Which, as far as I can tell, is never).
end_document(implicit) Instance Public methods Called with the document ends. implicit is a boolean value indicating whether or not the document has an implicit ending. Example Given the following YAML: --- hello world implicit will be true. Given this YAML: --- hello world ... implicit will be false.
end_mapping() Instance Public methods Called when a map ends
Page 819 of 11844