Remove more duplication with concord

This commit is contained in:
Markus Schirp 2013-06-15 01:29:44 +02:00
parent b43f449f3f
commit d1aed52877
2 changed files with 2 additions and 40 deletions

View file

@ -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
#

View file

@ -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