-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Changed - For almost any method called on a decorated object, both its result and `yield`ed arguments get decorated. Some methods aren’t meant to be decorated though: - `deconstruct` & `deconstruct_keys` for _pattern matching_, - _converting_ methods: those starting with `to_`, - _system_ methods: those starting with `_`. ## Added - `Magic::Decorator::Base.undecorated` to exclude methods from being decorated automagically. ### Default decorators - `EnumerableDecorator` to decorate `Enumerable`s. - enables _splat_ operator: `*decorated` , - enables _double-splat_ operator: `**decorated`, - enumerating methods yield decorated items.
- Loading branch information
1 parent
ba8b399
commit 76b6ce5
Showing
3 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## [0.2.0] — UNRELEASED | ||
## [0.2.0] — 2024-10-17 | ||
|
||
### Changed | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module Magic | ||
module Decorator | ||
VERSION = '0.2.0.alpha' | ||
VERSION = '0.2.0' | ||
end | ||
end |