Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-shaker committed Jul 24, 2024
1 parent ef3a58d commit 6e2f036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6e2f036

Please sign in to comment.