Class: AnbtSql::Token

Inherits:
AbstractToken show all
Defined in:
lib/anbt-sql-formatter/token.rb

Instance Attribute Summary

Attributes inherited from AbstractToken

#_type, #pos, #string

Instance Method Summary collapse

Methods inherited from AbstractToken

#to_s

Constructor Details

#initialize(type, string, pos = nil) ⇒ Token

Returns a new instance of Token.



63
64
65
66
67
68
# File 'lib/anbt-sql-formatter/token.rb', line 63

def initialize(type, string, pos=nil)
  @_type = type
  @string = string

  @pos = pos || -1
end