free_mutant/lib/mutant/config.rb

37 lines
615 B
Ruby
Raw Normal View History

# encoding: utf-8
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
)
2013-03-27 10:52:02 -04: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)
2013-03-27 10:52:02 -04:00
self
end
2013-06-14 14:54:02 -04:00
end # Config
end # Mutant