lib/mutant/matcher/config.rb in mutant-0.8.3 vs lib/mutant/matcher/config.rb in mutant-0.8.4
- old
+ new
@@ -1,10 +1,10 @@
module Mutant
class Matcher
# Subject matcher configuration
class Config
- include Adamantium, Anima::Update, Anima.new(
+ include Adamantium, Anima.new(
:match_expressions,
:ignore_expressions,
:subject_filters
)
@@ -39,10 +39,10 @@
#
# @return [Config]
#
# @api private
def add(attribute, value)
- update(attribute => public_send(attribute).dup << value)
+ with(attribute => public_send(attribute) + [value])
end
private
# Present attributes