diff --git a/lib/mutant/strategy.rb b/lib/mutant/strategy.rb index e1f20388..8742d295 100644 --- a/lib/mutant/strategy.rb +++ b/lib/mutant/strategy.rb @@ -2,27 +2,7 @@ module Mutant # Abstract base class for killing strategies class Strategy - include AbstractType, Adamantium::Flat, Equalizer.new - - # Return config - # - # @return [Config] - # - # @api private - # - attr_reader :config - - # Initialize object - # - # @param [Config] config - # - # @return [undefined - # - # @api private - # - def initialize(config) - @config = config - end + include AbstractType, Adamantium::Flat, Concord::Public.new(:config) # Perform setup # diff --git a/lib/mutant/strategy/rspec/dm2/lookup.rb b/lib/mutant/strategy/rspec/dm2/lookup.rb index fea4c34b..4cd0640e 100644 --- a/lib/mutant/strategy/rspec/dm2/lookup.rb +++ b/lib/mutant/strategy/rspec/dm2/lookup.rb @@ -5,15 +5,7 @@ module Mutant # Example lookup for the rspec dm2 class Lookup - include AbstractType, Adamantium::Flat, Equalizer.new(:subject) - - # Return subject - # - # @return [Subject] - # - # @api private - # - attr_reader :subject + include AbstractType, Adamantium::Flat, Concord::Public.new(:subject) # Return glob expression # @@ -23,16 +15,6 @@ module Mutant # abstract_method :spec_files - # Initalize object - # - # @param [Mutation] mutation - # - # @api private - # - def initialize(subject) - @subject = subject - end - # Perform example lookup # # @param [Subject] subject