Sha256: 33042d2611002cd4430090530e4712c9d55680d40ed5cb4ed5eb9bbf86102459

Contents?: true

Size: 498 Bytes

Versions: 8

Compression:

Stored size: 498 Bytes

Contents

module Mutest
  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 # Mutest

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutest-0.0.9 lib/mutest/reporter/sequence.rb
mutest-0.0.8 lib/mutest/reporter/sequence.rb
mutest-0.0.7 lib/mutest/reporter/sequence.rb
mutest-0.0.6 lib/mutest/reporter/sequence.rb
mutest-0.0.5 lib/mutest/reporter/sequence.rb
mutest-0.0.4 lib/mutest/reporter/sequence.rb
mutest-0.0.3 lib/mutest/reporter/sequence.rb
mutest-0.0.2 lib/mutest/reporter/sequence.rb