lib/added/implementation.rb in added-1.0.0 vs lib/added/implementation.rb in added-1.0.1

- old
+ new

@@ -6,15 +6,15 @@ def included(klass) super if respond_to? :added mod = self - klass.prepend(Module.new do + klass.send(:prepend, Module.new{ define_method(:initialize){ |*args, &block| super(*args, &block) mod.added(self) } - end) + }) ObjectSpace.each_object(klass){ |instance| added(instance) } end end