aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/collectors/sql_string.rb
blob: 45001bb50789ae4b60aec00d09092340f256edf0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# encoding: utf-8

module Arel
  module Collectors
    class SQLString
      def initialize
        @str = ''
      end

      def value
        @str
      end

      def << str
        @str << str
        self
      end

      def add_bind bind
        self << bind.to_s
        self
      end

      def compile bvs
        value
      end
    end
  end
end