Class: CoarseToken
- Inherits:
-
Object
- Object
- CoarseToken
- Defined in:
- lib/anbt-sql-formatter/coarse-tokenizer.rb
Overview
エスケープ文字
Instance Attribute Summary collapse
-
#_type ⇒ Object
Returns the value of attribute _type.
-
#string ⇒ Object
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(type, str) ⇒ CoarseToken
constructor
A new instance of CoarseToken.
- #to_s ⇒ Object
Constructor Details
#initialize(type, str) ⇒ CoarseToken
Returns a new instance of CoarseToken.
8 9 10 11 |
# File 'lib/anbt-sql-formatter/coarse-tokenizer.rb', line 8 def initialize(type, str) @_type = type @string = str end |
Instance Attribute Details
#_type ⇒ Object
Returns the value of attribute _type.
6 7 8 |
# File 'lib/anbt-sql-formatter/coarse-tokenizer.rb', line 6 def _type @_type end |
#string ⇒ Object
Returns the value of attribute string.
6 7 8 |
# File 'lib/anbt-sql-formatter/coarse-tokenizer.rb', line 6 def string @string end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/anbt-sql-formatter/coarse-tokenizer.rb', line 13 def to_s @string end |