mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
28 lines
365 B
Ruby
28 lines
365 B
Ruby
# encoding: utf-8
|
|
|
|
module Arel
|
|
module Collectors
|
|
class SQLString
|
|
def initialize
|
|
@str = ''
|
|
end
|
|
|
|
def value
|
|
@str
|
|
end
|
|
|
|
def << str
|
|
@str << str
|
|
self
|
|
end
|
|
|
|
def start; self; end
|
|
def finish; self; end
|
|
|
|
def add_bind bind
|
|
self << bind
|
|
self
|
|
end
|
|
end
|
|
end
|
|
end
|