Class: Furnace::AVM2::Tokens::LabelToken
- Inherits:
-
Code::TerminalToken
- Object
- Code::TerminalToken
- Furnace::AVM2::Tokens::LabelToken
- Defined in:
- lib/furnace-avm2/source/implementation_tokens/label_token.rb
Instance Method Summary collapse
-
#initialize(origin, value, options = {}) ⇒ LabelToken
constructor
A new instance of LabelToken.
- #to_text ⇒ Object
Constructor Details
#initialize(origin, value, options = {}) ⇒ LabelToken
Returns a new instance of LabelToken.
3 4 5 6 |
# File 'lib/furnace-avm2/source/implementation_tokens/label_token.rb', line 3 def initialize(origin, value, ={}) super(origin, ) @value = value end |
Instance Method Details
#to_text ⇒ Object
8 9 10 |
# File 'lib/furnace-avm2/source/implementation_tokens/label_token.rb', line 8 def to_text "#{@value}" end |