Class: CBOR::Simple
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #to_s ⇒ Object (also: #inspect)
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value
56 57 58 |
# File 'lib/cbor-pure.rb', line 56 def value @value end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
57 58 59 60 61 62 63 |
# File 'lib/cbor-pure.rb', line 57 def to_s if value == 23 "undefined" else "simple(#{value})" end end |