Class: NCPP::AsmFunc
- Inherits:
-
Object
- Object
- NCPP::AsmFunc
- Defined in:
- lib/ncpp/types.rb
Instance Attribute Summary collapse
-
#instructions ⇒ Object
readonly
Returns the value of attribute instructions.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#literal_pool ⇒ Object
readonly
Returns the value of attribute literal_pool.
Instance Method Summary collapse
-
#initialize(instructions, labels, literal_pool) ⇒ AsmFunc
constructor
A new instance of AsmFunc.
- #to_s(reloc: true) ⇒ Object
Constructor Details
#initialize(instructions, labels, literal_pool) ⇒ AsmFunc
Returns a new instance of AsmFunc.
58 59 60 61 62 |
# File 'lib/ncpp/types.rb', line 58 def initialize(instructions, labels, literal_pool) @instructions = instructions @labels = labels @literal_pool = literal_pool end |
Instance Attribute Details
#instructions ⇒ Object (readonly)
Returns the value of attribute instructions.
56 57 58 |
# File 'lib/ncpp/types.rb', line 56 def instructions @instructions end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
56 57 58 |
# File 'lib/ncpp/types.rb', line 56 def labels @labels end |
#literal_pool ⇒ Object (readonly)
Returns the value of attribute literal_pool.
56 57 58 |
# File 'lib/ncpp/types.rb', line 56 def literal_pool @literal_pool end |
Instance Method Details
#to_s(reloc: true) ⇒ Object
64 65 |
# File 'lib/ncpp/types.rb', line 64 def to_s(reloc: true) end |