summaryrefslogtreecommitdiff
path: root/lib/hashie/hash.rb
diff options
context:
space:
mode:
authorMichael Herold <opensource@michaeljherold.com>2019-11-17 11:16:10 -0600
committerMichael Herold <opensource@michaeljherold.com>2019-11-17 11:36:31 -0600
commit15ea67ef0667546627f9a3cd4fef4457512f5880 (patch)
tree2cf6345d16a063cd0dca51eb6a0dfc8c90ea2d80 /lib/hashie/hash.rb
parent2846ea63a90a594ed67e3eb8ba7c5fd125909089 (diff)
downloadhashie-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 'lib/hashie/hash.rb')
0 files changed, 0 insertions, 0 deletions