Method: RuboCop::Token#initialize

Defined in:
lib/rubocop/token.rb

#initialize(pos, type, text) ⇒ Token

Returns a new instance of Token.



15
16
17
18
19
20
# File 'lib/rubocop/token.rb', line 15

def initialize(pos, type, text)
  @pos = pos
  @type = type
  # Parser token "text" may be a Fixnum
  @text = text.to_s
end