lib/fakes/ignore_set.rb in fakes-0.1.7 vs lib/fakes/ignore_set.rb in fakes-0.1.9
- old
+ new
@@ -1,17 +1,16 @@
module Fakes
class IgnoreSet
include ArgBehaviour
- attr_accessor :arg_sets
def initialize
- @arg_sets = []
+ array :arg_sets do|a|
+ a.mutator :capture_args do|args|
+ @times_called += 1
+ @arg_sets << args
+ end
+ end
@times_called = 0
- end
-
- def capture_args(args)
- @times_called += 1
- @arg_sets << args
end
def matches?(args)
return true
end