free_mutant/lib/mutant/runner.rb

40 lines
586 B
Ruby
Raw Normal View History

2012-08-14 22:45:34 +02:00
module Mutant
# Runner that allows to mutate an entire project
2012-08-14 22:45:34 +02:00
class Runner
include Adamantium::Flat, AbstractType
extend MethodObject
2012-08-14 22:45:34 +02:00
# Return config
#
# @return [Mutant::Config]
#
# @api private
#
attr_reader :config
# Initialize object
2012-08-16 19:26:15 +02:00
#
2012-11-21 20:49:23 +01:00
# @param [Config] config
2012-08-16 19:26:15 +02:00
#
# @return [undefined]
#
# @api private
#
2012-11-21 20:49:23 +01:00
def initialize(config)
2013-01-15 23:46:05 +01:00
@config = config
2012-08-14 22:45:34 +02:00
run
2013-01-15 23:46:05 +01:00
end
private
2012-08-14 22:45:34 +02:00
# Perform operation
2012-08-16 19:26:15 +02:00
#
# @return [undefined]
#
# @api private
#
abstract_method :run
2012-08-14 22:45:34 +02:00
end
end