30 lines
569 B
Ruby
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
|