Method: Tailor::Lexer::Token#initialize

Defined in:
lib/tailor/lexer/token.rb

#initialize(the_token, options = {}) ⇒ Token

Returns a new instance of Token.

Parameters:

  • the_token (String)
  • options (Hash) (defaults to: {})


15
16
17
18
# File 'lib/tailor/lexer/token.rb', line 15

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