Sha256: b42faca546d2ae24de319cec5387521981e1119859d6abf37647a7cae1c4131b

Contents?: true

Size: 499 Bytes

Versions: 6

Compression:

Stored size: 499 Bytes

Contents

module Mutant
  class Reporter
    class Sequence < self
      include Concord.new(:reporters)

      %i[warn progress report start].each do |name|
        define_method(name) do |value|
          reporters.each do |reporter|
            reporter.public_send(name, value)
          end

          self
        end
      end

      # Minimum reporter delay
      #
      # @return [Float]
      def delay
        reporters.map(&:delay).min
      end

    end # Sequence
  end # Reporter
end # Mutant

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.8.16 lib/mutant/reporter/sequence.rb
mutant-0.8.15 lib/mutant/reporter/sequence.rb
mutant-0.8.14 lib/mutant/reporter/sequence.rb
mutant-0.8.13 lib/mutant/reporter/sequence.rb
mutant-0.8.12 lib/mutant/reporter/sequence.rb
mutant-0.8.11 lib/mutant/reporter/sequence.rb