Class: Object

Inherits:
BasicObject
Defined in:
lib/cbor-diagnostic.rb

Instance Method Summary collapse

Instance Method Details

#cbor__indent_helper(options) ⇒ Object



12
13
14
15
16
17
# File 'lib/cbor-diagnostic.rb', line 12

def cbor__indent_helper(options)
  indent = options[:indent] || ''
  indent2 = indent + "  "
  indented_options = options.merge({indent: indent2})
  [indent, indent2, indented_options]
end

#cbor_diagnostic(_ = nil) ⇒ Object



9
10
11
# File 'lib/cbor-diagnostic.rb', line 9

def cbor_diagnostic(_=nil)
  inspect
end