Class: AnbtSql::Token
- Inherits:
-
AbstractToken
- Object
- AbstractToken
- AnbtSql::Token
- Defined in:
- lib/anbt-sql-formatter/token.rb
Instance Attribute Summary
Attributes inherited from AbstractToken
Instance Method Summary collapse
-
#initialize(type, string, pos = nil) ⇒ Token
constructor
A new instance of Token.
Methods inherited from AbstractToken
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 |