Class: Furnace::AVM2::Tokens::ClassNameToken
- Inherits:
-
Code::SurroundedToken
- Object
- Code::SurroundedToken
- Furnace::AVM2::Tokens::ClassNameToken
- Defined in:
- lib/furnace-avm2/source/declaration_tokens/class_name_token.rb
Instance Method Summary collapse
-
#initialize(origin, options = {}) ⇒ ClassNameToken
constructor
A new instance of ClassNameToken.
- #text_after ⇒ Object
- #text_before ⇒ Object
Constructor Details
#initialize(origin, options = {}) ⇒ ClassNameToken
Returns a new instance of ClassNameToken.
3 4 5 6 7 |
# File 'lib/furnace-avm2/source/declaration_tokens/class_name_token.rb', line 3 def initialize(origin, ={}) super(origin, [ MultinameToken.new(origin, origin.name, ) ], ) end |
Instance Method Details
#text_after ⇒ Object
17 18 19 |
# File 'lib/furnace-avm2/source/declaration_tokens/class_name_token.rb', line 17 def text_after " " end |
#text_before ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/furnace-avm2/source/declaration_tokens/class_name_token.rb', line 9 def text_before if origin.interface? "interface " else "class " end end |