Class: AArch64::Assembler::Label
- Inherits:
-
Object
- Object
- AArch64::Assembler::Label
- Defined in:
- lib/aarch64.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ Label
constructor
A new instance of Label.
- #set_offset(offset) ⇒ Object
- #to_i ⇒ Object
Constructor Details
#initialize(name) ⇒ Label
Returns a new instance of Label.
127 128 129 130 |
# File 'lib/aarch64.rb', line 127 def initialize name @name = name @offset = nil end |
Instance Method Details
#set_offset(offset) ⇒ Object
132 133 134 135 |
# File 'lib/aarch64.rb', line 132 def set_offset offset @offset = offset freeze end |
#to_i ⇒ Object
137 138 139 |
# File 'lib/aarch64.rb', line 137 def to_i @offset * 4 end |