Object
A basic wrapper around Parser's tokens.
# File lib/rubocop/token.rb, line 7 def self.from_parser_token(parser_token) type, details = *parser_token text, range = *details new(range, type, text) end
# File lib/rubocop/token.rb, line 13 def initialize(pos, type, text) @pos, @type, @text = pos, type, text end
# File lib/rubocop/token.rb, line 17 def to_s "[[#{@pos.line}, #{@pos.column}], #{@type}, #{@text.inspect}]" end
[Validate]
Generated with the Darkfish Rdoc Generator 2.