Class: Fisk::UnknownLabel
- Inherits:
-
Struct
- Object
- Struct
- Fisk::UnknownLabel
- Defined in:
- lib/fisk.rb
Instance Attribute Summary collapse
-
#assembler ⇒ Object
Returns the value of attribute assembler.
-
#insn ⇒ Object
Returns the value of attribute insn.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#assembler ⇒ Object
Returns the value of attribute assembler
105 106 107 |
# File 'lib/fisk.rb', line 105 def assembler @assembler end |
#insn ⇒ Object
Returns the value of attribute insn
105 106 107 |
# File 'lib/fisk.rb', line 105 def insn @insn end |
#name ⇒ Object
Returns the value of attribute name
105 106 107 |
# File 'lib/fisk.rb', line 105 def name @name end |
Instance Method Details
#unknown_label? ⇒ Boolean
110 |
# File 'lib/fisk.rb', line 110 def unknown_label?; true; end |
#value ⇒ Object
112 113 114 115 |
# File 'lib/fisk.rb', line 112 def value label = assembler.label_for(name) label.position - (insn.position + insn.bytesize) end |
#works?(type) ⇒ Boolean
106 107 108 |
# File 'lib/fisk.rb', line 106 def works? type type == "rel32" end |