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
42 43 44 |
# File 'lib/cbor-pure.rb', line 42 def tag @tag end |
#value ⇒ Object
Returns the value of attribute value
42 43 44 |
# File 'lib/cbor-pure.rb', line 42 def value @value end |
Instance Method Details
#cbor_diagnostic(options = {}) ⇒ Object
99 100 101 |
# File 'lib/cbor-diagnostic.rb', line 99 def cbor_diagnostic( = {}) "#{tag}(#{value.cbor_diagnostic()})" end |
#data ⇒ Object
backwards compat to pre-0.5.0
49 50 51 |
# File 'lib/cbor-pure.rb', line 49 def data # backwards compat to pre-0.5.0 value end |
#inspect ⇒ Object
46 47 48 |
# File 'lib/cbor-pure.rb', line 46 def inspect "#{tag}(#{value.inspect})" end |
#to_s ⇒ Object
43 44 45 |
# File 'lib/cbor-pure.rb', line 43 def to_s "#{tag}(#{value})" end |