lib/bogus/makes_ducks.rb in bogus-0.0.3 vs lib/bogus/makes_ducks.rb in bogus-0.0.4

- old
+ new

@@ -2,11 +2,11 @@ class MakesDucks extend Bogus::Takes takes :class_methods, :instance_methods, :makes_subtypes - def make(klass, *classes) - duck = makes_subtypes.make(klass) + def make(first_class, *classes) + duck = makes_subtypes.make(first_class) classes.each do |klass| remove_methods(class_methods.call(duck), class_methods.call(klass)) remove_methods(instance_methods.call(duck), instance_methods.call(klass))