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.



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

#_typeObject

Returns the value of attribute _type.



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

def _type
  @_type
end

#stringObject

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_sObject



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

def to_s
  @string
end