free_mutant/lib/mutant/matcher.rb
2015-07-02 03:35:54 +00:00

30 lines
569 B
Ruby

module Mutant
# Abstract matcher to find subjects to mutate
class Matcher
include Adamantium::Flat, Enumerable, AbstractType
# Default matcher build implementation
#
# @param [Env] env
# @param [Object] input
#
# @return [undefined]
#
# @api private
def self.build(*arguments)
new(*arguments)
end
# Enumerate subjects
#
# @return [self]
# if block given
#
# @return [Enumerable<Subject>]
# otherwise
#
# @api private
abstract_method :each
end # Matcher
end # Mutant