Sha256: 5dc9a5c1c7d0474324e04ff427a6915cc46c4da5d7e1f72b690b23aa53521546
Contents?: true
Size: 387 Bytes
Versions: 2
Compression:
Stored size: 387 Bytes
Contents
module Cborb::Decoding class Decoder extend Forwardable def_delegators :@state, :result, :finished?, :remaining_bytes def initialize @state = Cborb::Decoding::State.new end def decode(cbor) @state << cbor.to_s end def inspect "#<#{self.class}:#{object_id} finished=#{finished?} result=#{finished? ? result : "nil"}>" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cborb-0.3.0 | lib/cborb/decoding/decoder.rb |
cborb-0.2.0 | lib/cborb/decoding/decoder.rb |