module CBOR_DIAG::Array3

Public Instance Methods

to_rb() click to toggle source
# File lib/cbor-diag-parser.rb, line 2600
def to_rb
  r = if e = a1.elements
    [e[0].to_rb] + e[2].elements.map {|x| x.value.to_rb }
  else
    []
  end
  if spec.is_stream?
    r.cbor_stream!
  end
  r
end