Class: Furnace::AVM2::Tokens::NamespaceNameToken
- Inherits:
-
Code::TerminalToken
- Object
- Code::TerminalToken
- Furnace::AVM2::Tokens::NamespaceNameToken
- Defined in:
- lib/furnace-avm2/source/declaration_tokens/namespace_name_token.rb
Instance Method Summary collapse
-
#initialize(origin, name, options = {}) ⇒ NamespaceNameToken
constructor
A new instance of NamespaceNameToken.
- #to_text ⇒ Object
Constructor Details
#initialize(origin, name, options = {}) ⇒ NamespaceNameToken
Returns a new instance of NamespaceNameToken.
3 4 5 6 |
# File 'lib/furnace-avm2/source/declaration_tokens/namespace_name_token.rb', line 3 def initialize(origin, name, ={}) super(origin, ) @name = name end |
Instance Method Details
#to_text ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/furnace-avm2/source/declaration_tokens/namespace_name_token.rb', line 8 def to_text if @name == "*" nil else @name end end |