Class: CBOR::SimpleValue
- Inherits:
-
Struct
- Object
- Struct
- CBOR::SimpleValue
- Defined in:
- lib/libcbor/simple_value.rb
Overview
Represents Simple value other than those that have native Ruby mapping
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value
3 4 5 |
# File 'lib/libcbor/simple_value.rb', line 3 def value @value end |
Instance Method Details
#==(other) ⇒ Object
4 5 6 7 8 |
# File 'lib/libcbor/simple_value.rb', line 4 def ==(other) if other.is_a? SimpleValue other.value == value end end |