Class: Array

Inherits:
Object show all
Defined in:
lib/cbor-pp.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#cbor_add_annotations_from(ann_list) ⇒ Object



162
163
164
165
# File 'lib/cbor-pp.rb', line 162

def cbor_add_annotations_from(ann_list)
  super
  each {|m| m.cbor_add_annotations_from(ann_list)}
end

#cbor_cloneObject



166
167
168
# File 'lib/cbor-pp.rb', line 166

def cbor_clone
  map(&:cbor_clone)
end

#cbor_pp(q) ⇒ Object

:nodoc:



154
155
156
157
158
159
160
161
# File 'lib/cbor-pp.rb', line 154

def cbor_pp(q) # :nodoc:
  s = "#{cbor_annotation_format}["
  q.group(1, s, ']') {
    q.seplist(self) {|v|
      q.pp v
    }
  }
end