lib/mem.rb in mem-0.1.0 vs lib/mem.rb in mem-0.1.1

- old
+ new

@@ -30,8 +30,12 @@ memoize(method_name, send("#{method_name}_without_memoize", *args, &block)) end end alias_method "#{method_name}_without_memoize", method_name alias_method method_name, "#{method_name}_with_memoize" + + define_method("#{method_name}=") do |value| + memoize(method_name, value) + end end end end