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



                     
                     












                   
# frozen_string_literal: true
module Arel
  module Collectors
    class PlainString
      def initialize
        @str = ''.dup
      end

      def value
        @str
      end

      def << str
        @str << str
        self
      end
    end
  end
end