Class: CBOR::Tagged
- Defined in:
- lib/cbor-pure.rb,
lib/cbor-diagnostic.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
24 25 26 |
# File 'lib/cbor-pure.rb', line 24 def data @data end |
#tag ⇒ Object
Returns the value of attribute tag
24 25 26 |
# File 'lib/cbor-pure.rb', line 24 def tag @tag end |
Instance Method Details
#cbor_diagnostic ⇒ Object
71 72 73 |
# File 'lib/cbor-diagnostic.rb', line 71 def cbor_diagnostic "#{tag}(#{data.cbor_diagnostic})" end |
#inspect ⇒ Object
28 29 30 |
# File 'lib/cbor-pure.rb', line 28 def inspect "#{tag}(#{data.inspect})" end |
#to_s ⇒ Object
25 26 27 |
# File 'lib/cbor-pure.rb', line 25 def to_s "#{tag}(#{data})" end |