aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/collectors/plain_string.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/collectors/plain_string.rb')
-rw-r--r--lib/arel/collectors/plain_string.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/arel/collectors/plain_string.rb b/lib/arel/collectors/plain_string.rb
new file mode 100644
index 0000000000..2505bc376e
--- /dev/null
+++ b/lib/arel/collectors/plain_string.rb
@@ -0,0 +1,18 @@
+module Arel
+ module Collectors
+ class PlainString
+ def initialize
+ @str = ''
+ end
+
+ def value
+ @str
+ end
+
+ def << str
+ @str << str
+ self
+ end
+ end
+ end
+end