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


                     
                     





               
                 





                   
# 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