Class: Furnace::AVM2::Tokens::ClassImplementationsToken
- Inherits:
-
Code::SeparatedToken
- Object
- Code::SeparatedToken
- Furnace::AVM2::Tokens::ClassImplementationsToken
- Defined in:
- lib/furnace-avm2/source/declaration_tokens/class_implementations_token.rb
Instance Method Summary collapse
-
#initialize(origin, options = {}) ⇒ ClassImplementationsToken
constructor
A new instance of ClassImplementationsToken.
- #text_after ⇒ Object
- #text_before ⇒ Object
- #text_between ⇒ Object
Constructor Details
#initialize(origin, options = {}) ⇒ ClassImplementationsToken
Returns a new instance of ClassImplementationsToken.
3 4 5 6 7 |
# File 'lib/furnace-avm2/source/declaration_tokens/class_implementations_token.rb', line 3 def initialize(origin, ={}) super(origin, origin.interfaces.map { |iface| MultinameToken.new(origin, iface, ) }, ) end |
Instance Method Details
#text_after ⇒ Object
21 22 23 |
# File 'lib/furnace-avm2/source/declaration_tokens/class_implementations_token.rb', line 21 def text_after " " end |
#text_before ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/furnace-avm2/source/declaration_tokens/class_implementations_token.rb', line 9 def text_before if @options[:environment] == :interface "extends " else "implements " end end |
#text_between ⇒ Object
17 18 19 |
# File 'lib/furnace-avm2/source/declaration_tokens/class_implementations_token.rb', line 17 def text_between ", " end |