Class: C8dasm::Assembly
- Inherits:
-
Object
- Object
- C8dasm::Assembly
- Defined in:
- lib/c8dasm/assembly.rb
Instance Method Summary collapse
-
#initialize(opcode) ⇒ Assembly
constructor
A new instance of Assembly.
- #to_s ⇒ Object
Constructor Details
#initialize(opcode) ⇒ Assembly
Returns a new instance of Assembly.
5 6 7 8 |
# File 'lib/c8dasm/assembly.rb', line 5 def initialize(opcode) @opcode = opcode @assembly = build_assembly.to_s || '' end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/c8dasm/assembly.rb', line 10 def to_s @assembly end |