Class: CBOR::Tagged
- Defined in:
- lib/cbor-pure.rb,
lib/cbor-diagnostic.rb
Instance Attribute Summary collapse
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #cbor_diagnostic(options = {}) ⇒ Object
-
#data ⇒ Object
backwards compat to pre-0.5.0.
- #inspect ⇒ Object
- #to_s ⇒ Object
Instance Attribute Details
#tag ⇒ Object
Returns the value of attribute tag
67 68 69 |
# File 'lib/cbor-pure.rb', line 67 def tag @tag end |
#value ⇒ Object
Returns the value of attribute value
67 68 69 |
# File 'lib/cbor-pure.rb', line 67 def value @value end |
Instance Method Details
#cbor_diagnostic(options = {}) ⇒ Object
117 118 119 |
# File 'lib/cbor-diagnostic.rb', line 117 def cbor_diagnostic( = {}) "#{tag}(#{value.cbor_diagnostic(options)})" end |
#data ⇒ Object
backwards compat to pre-0.5.0
74 75 76 |
# File 'lib/cbor-pure.rb', line 74 def data # backwards compat to pre-0.5.0 value end |
#inspect ⇒ Object
71 72 73 |
# File 'lib/cbor-pure.rb', line 71 def inspect "#{tag}(#{value.inspect})" end |
#to_s ⇒ Object
68 69 70 |
# File 'lib/cbor-pure.rb', line 68 def to_s "#{tag}(#{value})" end |