From 91e441b77b77c95e5f1f965abf97d4fa9c346ab6 Mon Sep 17 00:00:00 2001 From: Yuri Smirnov Date: Sat, 10 Aug 2024 15:08:31 +0300 Subject: [PATCH] improve readme using chatgpt --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 19a0a8f..3508fc2 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ a.memoized?(:call) # => true a.memoized?(:execute) # => false ``` -## Differences from other gems +## Differences from Other Gems Memery is similar to [Memoist](https://github.com/matthewrudy/memoist), but it doesn't override methods. Instead, it uses Ruby 2's `Module.prepend` feature. This approach is cleaner, allowing you to inspect the original method body with `method(:x).super_method.source`, and it ensures that subclasses' methods function properly. If you redefine a memoized method in a subclass, it won't be memoized by default. You can memoize it normally without needing an awkward `identifier: ` argument, and it will just work: