
* New primary interface #call makes specs and implementations much easier * We had #each mostly for historical reasons that are not relevant anymore * Mutation covers the Mutant::Matcher namespace
17 lines
343 B
Ruby
17 lines
343 B
Ruby
module Mutant
|
|
class Matcher
|
|
# Matcher returning subjects already known at its creation time
|
|
class Static
|
|
include Concord.new(:subjects)
|
|
|
|
# Call matcher
|
|
#
|
|
# @return [Enumerable<Subject>]
|
|
#
|
|
# @api private
|
|
def call(_env)
|
|
subjects
|
|
end
|
|
end # Static
|
|
end # Matcher
|
|
end # Mutant
|