7293386c26
* rubocop still warns about this on ruby 1.9.3, so it was fixed so it produces less output on travis.
29 lines
553 B
Ruby
29 lines
553 B
Ruby
# encoding: utf-8
|
|
|
|
module Mutant
|
|
# The configuration of a mutator run
|
|
class Config
|
|
include Adamantium::Flat, Anima.new(
|
|
:cache, :debug, :strategy, :matcher, :filter, :reporter, :fail_fast
|
|
)
|
|
|
|
# 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
|