Sha256: ab36edde262ee8af7b982245cdbf357d4ada967a40b88e8be2c0cb18438eee4a
Contents?: true
Size: 393 Bytes
Versions: 3
Compression:
Stored size: 393 Bytes
Contents
module Cborb::Decoding::Types # To represent part of major type: 7 # # @see https://tools.ietf.org/html/rfc7049#section-2.3 class SimpleValue < Type VALUES = [ false, true, nil, nil, # doesn't exist "undefined" in ruby ].freeze def self.decode(state, additional_info) state.accept_value(self, VALUES[additional_info - 20]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cborb-0.3.0 | lib/cborb/decoding/types/simple_value.rb |
cborb-0.2.0 | lib/cborb/decoding/types/simple_value.rb |
cborb-0.1.0 | lib/cborb/decoding/types/simple_value.rb |