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.
10 11 12 13 |
# File 'lib/anbt-sql-formatter/coarse-tokenizer.rb', line 10 def initialize(type, str) @_type = type @string = str end |
Instance Attribute Details
#_type ⇒ Object
Returns the value of attribute _type.
8 9 10 |
# File 'lib/anbt-sql-formatter/coarse-tokenizer.rb', line 8 def _type @_type end |
#string ⇒ Object
Returns the value of attribute string.
8 9 10 |
# File 'lib/anbt-sql-formatter/coarse-tokenizer.rb', line 8 def string @string end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/anbt-sql-formatter/coarse-tokenizer.rb', line 15 def to_s @string end |