Class: Furnace::AVM2::Tokens::ImportToken
- Inherits:
-
Code::SurroundedToken
- Object
- Code::SurroundedToken
- Furnace::AVM2::Tokens::ImportToken
- Defined in:
- lib/furnace-avm2/source/declaration_tokens/import_token.rb
Instance Method Summary collapse
-
#initialize(origin, name, options = {}) ⇒ ImportToken
constructor
A new instance of ImportToken.
- #text_after ⇒ Object
- #text_before ⇒ Object
Constructor Details
#initialize(origin, name, options = {}) ⇒ ImportToken
Returns a new instance of ImportToken.
3 4 5 6 7 |
# File 'lib/furnace-avm2/source/declaration_tokens/import_token.rb', line 3 def initialize(origin, name, ={}) super(origin, [ NamespaceNameToken.new(origin, name, ) ], ) end |
Instance Method Details
#text_after ⇒ Object
13 14 15 |
# File 'lib/furnace-avm2/source/declaration_tokens/import_token.rb', line 13 def text_after ".*;\n" end |
#text_before ⇒ Object
9 10 11 |
# File 'lib/furnace-avm2/source/declaration_tokens/import_token.rb', line 9 def text_before "import " end |