free_mutant/lib/mutant/strategy.rb
Dan Kubb 7293386c26 Add magic encoding header to all ruby files
* rubocop still warns about this on ruby 1.9.3, so it was fixed so
  it produces less output on travis.
2013-07-28 16:03:06 -07:00

52 lines
735 B
Ruby

# encoding: utf-8
module Mutant
# Abstract base class for killing strategies
class Strategy
include AbstractType, Adamantium::Flat
# Perform setup
#
# @return [self]
#
# @api private
#
def self.setup
self
end
# Perform teardown
#
# @return [self]
#
# @api private
#
def self.teardown
self
end
# Kill mutation
#
# @param [Mutation] mutation
#
# @return [Killer]
#
# @api private
#
def self.kill(mutation)
killer.new(self, mutation)
end
# Return killer
#
# @return [Class:Killer]
#
# @api private
#
def self.killer
self::KILLER
end
end # Strategy
end # Mutant