Class: CoarseToken

Inherits:
Object
  • Object
show all
Defined in:
lib/anbt-sql-formatter/coarse-tokenizer.rb

Overview

エスケープ文字

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#_typeObject

Returns the value of attribute _type.



6
7
8
# File 'lib/anbt-sql-formatter/coarse-tokenizer.rb', line 6

def _type
  @_type
end

#stringObject

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_sObject



13
14
15
# File 'lib/anbt-sql-formatter/coarse-tokenizer.rb', line 13

def to_s
  @string
end