module CBOR::Packed::Array_Packed_CBOR
Public Instance Methods
cbor_visit() { |self| ... }
click to toggle source
# File lib/cbor-packed.rb, line 201 def cbor_visit(&b) if yield self each do |o| o.cbor_visit(&b) end end end
packed_merge(other, unpacker)
click to toggle source
# File lib/cbor-packed.rb, line 219 def packed_merge(other, unpacker) # TODO: add checks to_unpacked_cbor1(unpacker) + other.to_unpacked_cbor1(unpacker) end
to_packed_cbor1(packer = Packer.from_item(self))
click to toggle source
# File lib/cbor-packed.rb, line 211 def to_packed_cbor1(packer = Packer.from_item(self)) if c = packer.has(self) c.to_unpacked_cbor1(unpacker) else # TODO: Find useful prefixes map {|x| x.to_packed_cbor1(packer)} end end
to_unpacked_cbor1(unpacker)
click to toggle source
# File lib/cbor-packed.rb, line 208 def to_unpacked_cbor1(unpacker) map {|x| x.to_unpacked_cbor1(unpacker)} end