diff options
author | Michael Herold <opensource@michaeljherold.com> | 2019-11-17 11:16:10 -0600 |
---|---|---|
committer | Michael Herold <opensource@michaeljherold.com> | 2019-11-17 11:36:31 -0600 |
commit | 15ea67ef0667546627f9a3cd4fef4457512f5880 (patch) | |
tree | 2cf6345d16a063cd0dca51eb6a0dfc8c90ea2d80 /CHANGELOG.md | |
parent | 2846ea63a90a594ed67e3eb8ba7c5fd125909089 (diff) | |
download | hashie-15ea67ef0667546627f9a3cd4fef4457512f5880.tar.gz |
Add a PermissiveRespondTo extension for Mashes
By default, Mashes don't state that they respond to unset keys. This
causes unexpected behavior when you try to use a Mash with a
SimpleDelegator.
This new extension allows you create a permissive subclass of Mash that
will be fully compatible with SimpleDelegator and allow you to fully do
thunk-oriented programming with Mashes.
This comes with the trade-off of a ~19KB cache for each of these
subclasses and a ~20% performance penalty on any of those subclasses.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1408cb5..49b3aad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ scheme are considered to be bugs. ### Added +* [#499](https://github.com/hashie/hashie/pull/499): Add `Hashie::Extensions::Mash::PermissiveRespondTo` to make specific subclasses of Mash fully respond to messages for use with `SimpleDelegator` - [@michaelherold](https://github.com/michaelherold). * Your contribution here. ### Changed |