aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/collectors/plain_string.rb
blob: 687d7fbf2f729328ed81da4bf81f61f5417e1e89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Arel # :nodoc: all
  module Collectors
    class PlainString
      def initialize
        @str = "".dup
      end

      def value
        @str
      end

      def <<(str)
        @str << str
        self
      end
    end
  end
end