Module: CBOR_DIAG::Embedded1

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

Instance Method Summary collapse

Instance Method Details

#to_rbObject



2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
# File 'lib/cbor-diag-parser.rb', line 2156

def to_rb
  if se = s
    sn = se.to_rb
    if CBOR::Sequence === sn
      sn.to_cborseq
    else
      CBOR.encode(sn)
    end
  else
    "".b
  end
end