Module: CBOR_DIAG::Streamstring7

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

Instance Method Summary collapse

Instance Method Details

#to_rbObject



3199
3200
3201
3202
3203
3204
3205
3206
# File 'lib/cbor-diag-parser.rb', line 3199

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