class Rutile::Parser::Token
Attributes
string[RW]
type[RW]
Public Class Methods
new(type, string)
click to toggle source
# File lib/rutile/lexer.rb, line 7 def initialize(type, string) if type == [:transition_state] throw Exception.new("Malformed token: #{string}") end type.delete :transition_state @type = type @string = string end