aboutsummaryrefslogblamecommitdiffstats
path: root/activejob/test/support/job_buffer.rb
blob: 620cb5288d838cd2369243a6b9a160e3fc205893 (plain) (tree)


















                     
module JobBuffer
  class << self
    def clear
      values.clear
    end

    def add(value)
      values << value
    end

    def values
      @values ||= []
    end

    def last_value
      values.last
    end
  end
end