free_mutant/lib/mutant/runner.rb

39 lines
562 B
Ruby
Raw Normal View History

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