lib/bogus/copies_methods.rb in bogus-0.0.4 vs lib/bogus/copies_methods.rb in bogus-0.1.0

- old
+ new

@@ -1,15 +1,17 @@ module Bogus class CopiesMethods - extend Bogus::Takes + extend Takes takes :makes_substitute_methods, - :instance_methods, - :class_methods + :method_copiers, + :copies_constructor def copy(from, into) - copy_methods(from, into, instance_methods) - copy_methods(from, into, class_methods) + method_copiers.each do |copier| + copy_methods(from, into, copier) + end + copies_constructor.copy(from, into) end private def copy_methods(original_class, copy_class, make_methods)