Skip to content

Commit

Permalink
improve readme using chatgpt
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Aug 10, 2024
1 parent 16481ba commit 91e441b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 91e441b

Please sign in to comment.