Class: Furnace::AVM2::Tokens::RestArgumentToken

Inherits:
Code::TerminalToken
  • Object
show all
Defined in:
lib/furnace-avm2/source/declaration_tokens/rest_argument_token.rb

Instance Method Summary collapse

Constructor Details

#initialize(origin, name, options = {}) ⇒ RestArgumentToken

Returns a new instance of RestArgumentToken.



3
4
5
6
# File 'lib/furnace-avm2/source/declaration_tokens/rest_argument_token.rb', line 3

def initialize(origin, name, options={})
  super(origin, options)
  @name = name
end

Instance Method Details

#to_textObject



8
9
10
# File 'lib/furnace-avm2/source/declaration_tokens/rest_argument_token.rb', line 8

def to_text
  "...#{@name}"
end