Class: NCPP::AsmFunc

Inherits:
Object
  • Object
show all
Defined in:
lib/ncpp/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#instructionsObject (readonly)

Returns the value of attribute instructions.



56
57
58
# File 'lib/ncpp/types.rb', line 56

def instructions
  @instructions
end

#labelsObject (readonly)

Returns the value of attribute labels.



56
57
58
# File 'lib/ncpp/types.rb', line 56

def labels
  @labels
end

#literal_poolObject (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