From 6e2f0361796c957908656bddcec6e74e32a06b92 Mon Sep 17 00:00:00 2001 From: Tim Shaker Date: Wed, 24 Jul 2024 15:45:55 -0400 Subject: [PATCH] Update documentation --- CHANGES.md | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 506dd9c..3becd66 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,8 +3,8 @@ # v1.3.0 - Add an `injected_methods(include_super = true)` instance and singleton helper method to track what dependency methods - have been created. This method includes itself in the list of injected methods and does not differentiate - whether a dependency was added using `inject` or `inject_static`. + have been created. This method includes itself in the list of injected methods. The instance method will return both + injected and static injected methods, while the singleton method will only return static injected methods. # v1.2.0 diff --git a/README.md b/README.md index 0353808..eeb5d3f 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ to track what dependency methods have been created. ```ruby MyClass.injected_methods -# => [:injected_methods, :dependency, :dependency=, :other_dependency, :other_dependency=, +# => [:injected_methods, :shared_value, :shared_value=] MyClass.new.injected_methods -# => [:injected_methods, :dependency, :dependency=, :other_dependency, :other_dependency=, +# => [:injected_methods, :dependency, :dependency=, :other_dependency, :other_dependency=, :shared_value, :shared_value=] ``` This replaces a pattern we've used before, adding default dependencies in the constructor, or as memoized methods.