Sha256: a192740ec65b1f974f54f477b2e03cef83d22cfbb5f750f99acca7bf934d5e97

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 Bytes

Contents

module Mutant
  # The configuration of a mutator run
  class Config
    include Adamantium::Flat, Anima.new(
      :cache,
      :debug,
      :strategy,
      :matcher,
      :reporter,
      :fail_fast,
      :zombie,
      :expected_coverage
    )

    # Enumerate subjects
    #
    # @api private
    #
    # @return [self]
    #   if block given
    #
    # @return [Enumerator<Subject>]
    #   otherwise
    #
    # @api private
    #
    def subjects(&block)
      return to_enum(__method__) unless block_given?
      matcher.each(&block)
      self
    end

  end # Config
end # Mutant

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mutant-0.5.23 lib/mutant/config.rb
mutant-0.5.22 lib/mutant/config.rb
mutant-0.5.21 lib/mutant/config.rb
mutant-0.5.20 lib/mutant/config.rb