Class: CBOR::Tag
- Inherits:
-
Struct
- Object
- Struct
- CBOR::Tag
- Defined in:
- lib/libcbor/tag.rb
Overview
Represents a tagged item – a pair of number and the item
Instance Attribute Summary collapse
-
#item ⇒ Object
The tagged item.
-
#value ⇒ Fixnum
The tag value.
Instance Method Summary collapse
Instance Attribute Details
#item ⇒ Object
The tagged item
6 7 8 |
# File 'lib/libcbor/tag.rb', line 6 def item @item end |
#value ⇒ Fixnum
The tag value
6 7 8 |
# File 'lib/libcbor/tag.rb', line 6 def value @value end |
Instance Method Details
#==(other) ⇒ Object
7 8 9 10 11 |
# File 'lib/libcbor/tag.rb', line 7 def ==(other) if other.is_a? Tag value == other.value && item == other.item end end |