Sha256: 4899d09461f673a12434c150924e4d15ce261890d917eeb6996c25c6ad5b19af

Contents?: true

Size: 514 Bytes

Versions: 3

Compression:

Stored size: 514 Bytes

Contents

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

    # 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

3 entries across 3 versions & 1 rubygems

Version Path
mutant-0.3.0.beta4 lib/mutant/config.rb
mutant-0.3.0.beta3 lib/mutant/config.rb
mutant-0.3.0.beta2 lib/mutant/config.rb