class Rubocop::Cop::Token
A basic wrapper around Parser’s tokens.
Attributes
pos[R]
text[R]
type[R]
Public Class Methods
new(pos, type, text)
click to toggle source
# File lib/rubocop/cop/cop.rb, line 9 def initialize(pos, type, text) @pos, @type, @text = pos, type, text end
Public Instance Methods
to_s()
click to toggle source
# File lib/rubocop/cop/cop.rb, line 13 def to_s "[[#{@pos.line}, #{@pos.column}], #{@type}, #{@text.inspect}]" end