2013-02-24 20:40:23 +01:00
|
|
|
module Mutant
|
|
|
|
# The configuration of a mutator run
|
|
|
|
class Config
|
|
|
|
include Adamantium::Flat, Anima.new(
|
|
|
|
:debug, :strategy, :matcher, :filter, :reporter
|
|
|
|
)
|
2013-03-27 15:52:02 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2013-06-14 20:54:02 +02:00
|
|
|
end # Config
|
|
|
|
end # Mutant
|