struct Agave::Parser
- Agave::Parser
- Struct
- Value
- Object
Defined in:
parser.crConstructors
-
.new(io : IO)
Initialize a parser to read from the given IO
Instance Method Summary
- #crlf
-
#read : Value
Read an
Agave::Value
from the parser'sIO
- #read_array
- #read_attributes
- #read_boolean
- #read_double
- #read_map
- #read_set
- #read_string
- #read_timestamp
- #read_verbatim_string
Constructor Detail
Instance Method Detail
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"