Class: Mutant::Config

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat
Defined in:
lib/mutant/config.rb

Overview

The configuration of a mutator run

Instance Method Summary collapse

Instance Method Details

#subjects(&block) ⇒ self, Enumerator<Subject>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Enumerate subjects

Returns:

  • (self)

    if block given

  • (Enumerator<Subject>)

    otherwise



29
30
31
32
33
# File 'lib/mutant/config.rb', line 29

def subjects(&block)
  return to_enum(__method__) unless block_given?
  Matcher::Filter.new(matcher, subject_predicate).each(&block)
  self
end