Module: CBOR_DIAG::Streamstring3

Defined in:
lib/cbor-diag-parser.rb

Instance Method Summary collapse

Instance Method Details

#to_rbObject



3145
3146
3147
3148
3149
3150
3151
3152
# File 'lib/cbor-diag-parser.rb', line 3145

def to_rb
   r = if e = a1.elements
     [e[0].to_rb] + e[2].elements.map {|x| x.string.to_rb }
   else
     []
   end
   r.join.cbor_stream!(r.map(&:size))
end