Class: Cborb::Decoding::Decoder
- Inherits:
-
Object
- Object
- Cborb::Decoding::Decoder
- Extended by:
- Forwardable
- Defined in:
- lib/cborb/decoding/decoder.rb
Instance Method Summary collapse
- #decode(cbor) ⇒ Object
-
#initialize ⇒ Decoder
constructor
A new instance of Decoder.
- #inspect ⇒ Object
Constructor Details
Instance Method Details
#decode(cbor) ⇒ Object
11 12 13 |
# File 'lib/cborb/decoding/decoder.rb', line 11 def decode(cbor) @state << cbor.to_s end |
#inspect ⇒ Object
15 16 17 |
# File 'lib/cborb/decoding/decoder.rb', line 15 def inspect "#<#{self.class}:#{object_id} finished=#{finished?} result=#{finished? ? result : "nil"}>" end |