struct

Agave::Parser

Inherits Struct < Value < Object

Constructors

new(io : IO)

Initialize a parser to read from the given IO

Source

Instance methods

crlf
Source
read

Read an Agave::Value from the parser's IO

Example:

io = IO::Memory.new
io << "$3\r\n"
io << "foo\r\n"
io.rewind

Parser.new(io).read # => "foo"
Source
read_array
Source
read_attributes
Source
read_boolean
Source
read_double
Source
read_map
Source
read_set
Source
read_string
Source
read_timestamp
Source
read_verbatim_string
Source