diff options
Diffstat (limited to 'lib/arel/collectors')
-rw-r--r-- | lib/arel/collectors/sql_string.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/arel/collectors/sql_string.rb b/lib/arel/collectors/sql_string.rb new file mode 100644 index 0000000000..824b0a1712 --- /dev/null +++ b/lib/arel/collectors/sql_string.rb @@ -0,0 +1,28 @@ +# 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 |