Class: Haxor::Token::Pointer
- Defined in:
- lib/haxor/token/pointer.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(label) ⇒ Pointer
constructor
A new instance of Pointer.
Methods inherited from Int64
Methods inherited from Data
Constructor Details
#initialize(label) ⇒ Pointer
Returns a new instance of Pointer.
7 8 9 10 |
# File 'lib/haxor/token/pointer.rb', line 7 def initialize(label) super(-1) # invalid pointer @label = label end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/haxor/token/pointer.rb', line 4 def data @data end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
5 6 7 |
# File 'lib/haxor/token/pointer.rb', line 5 def label @label end |