aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/lib/arel/collectors/plain_string.rb
blob: c0e9fff39915e151ee7326eeab04fd4cf560121a (plain) (tree)
1
2
3
4
5
6
7
                             
 
                         


                     
                  





               
                 





                   
# frozen_string_literal: true

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

      def value
        @str
      end

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