Class: SCASM::Label
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Statement
Instance Method Summary collapse
- #assemble(io) ⇒ Object
-
#initialize(name) ⇒ Label
constructor
A new instance of Label.
- #to_s ⇒ Object
Methods inherited from Statement
Constructor Details
#initialize(name) ⇒ Label
Returns a new instance of Label.
72 73 74 |
# File 'lib/scasm/statement.rb', line 72 def initialize name @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
70 71 72 |
# File 'lib/scasm/statement.rb', line 70 def name @name end |
Instance Method Details
#assemble(io) ⇒ Object
76 77 78 |
# File 'lib/scasm/statement.rb', line 76 def assemble io # nop end |
#to_s ⇒ Object
80 81 82 |
# File 'lib/scasm/statement.rb', line 80 def to_s "label #{@name.inspect}" end |