new

new(anchor = nil, tag = nil, implicit = true, style = BLOCK) Class Public methods 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. See Psych::Handler#start_sequence

new

new(encoding = UTF8) Class Public methods Create a new Psych::Nodes::Stream node with an encoding that defaults to Psych::Nodes::Stream::UTF8. See also Psych::Handler#start_stream

new

new(handler = Handler.new) Class Public methods Creates a new Psych::Parser instance with handler. YAML events will be called on handler. See Psych::Parser for more details.

mark

parser.mark # => # Instance Public methods Returns a Psych::Parser::Mark object that contains line, column, and index information.

parse

parser.parse(yaml) Instance Public methods Parse the YAML document contained in yaml. Events will be called on the handler set on the parser instance. See Psych::Parser and #handler

new

new() Class Public methods Create a new scanner

parse_int

parse_int(string) Instance Public methods Parse and return an int from string

parse_time

parse_time(string) Instance Public methods Parse and return a Time from string

tokenize

tokenize(string) Instance Public methods Tokenize string returning the ruby object

new

new(io) Class Public methods Create a new streaming emitter. Emitter will print to io. See Psych::Stream for an example.