free_mutant/lib/mutant/matcher/static.rb

18 lines
343 B
Ruby
Raw Normal View History

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