free_mutant/lib/mutant/matcher.rb

31 lines
569 B
Ruby
Raw Normal View History

module Mutant
# Abstract matcher to find subjects to mutate
class Matcher
2012-11-26 05:30:00 -05:00
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
2012-08-01 12:34:03 -04:00
# Enumerate subjects
#
# @return [self]
# if block given
#
# @return [Enumerable<Subject>]
# otherwise
#
2015-07-01 23:35:54 -04:00
# @api private
abstract_method :each
2013-06-14 14:54:02 -04:00
end # Matcher
end # Mutant