free_mutant/lib/mutant/runner.rb
Markus Schirp 2b6470f223 Add Mutant::Runner::Subject
The idea is to break up the big fat and ugly Runner class into dedicated
pices with a single reponsibility.
2013-02-01 23:06:07 +01:00

38 lines
562 B
Ruby

module Mutant
# Runner that allows to mutate an entire project
class Runner
include Adamantium::Flat, AbstractType
# Return config
#
# @return [Mutant::Config]
#
# @api private
#
attr_reader :config
# Initialize object
#
# @param [Config] config
#
# @return [undefined]
#
# @api private
#
def initialize(config)
@config = config
run
end
private
# Perform operation
#
# @return [undefined]
#
# @api private
#
abstract_method :run
end
end