Class: Fisk::UnknownLabel
- Inherits:
-
Struct
- Object
- Struct
- Fisk::UnknownLabel
- Defined in:
- lib/fisk.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
126 127 128 |
# File 'lib/fisk.rb', line 126 def name @name end |
Instance Method Details
#unknown_label? ⇒ Boolean
131 |
# File 'lib/fisk.rb', line 131 def unknown_label?; true; end |
#value ⇒ Object
133 134 135 136 |
# File 'lib/fisk.rb', line 133 def value label = assembler.label_for(name) label.position - (insn.position + insn.bytesize) end |
#works?(type) ⇒ Boolean
127 128 129 |
# File 'lib/fisk.rb', line 127 def works? type type == "rel32" end |