hashie/lib/hashie/extensions/mash
Michael Herold 15ea67ef06
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.
2019-11-17 11:36:31 -06:00
..
define_accessors.rb Add Hashie::Extensions::Mash::DefineAccessors. 2019-01-28 21:14:08 +03:00
keep_original_keys.rb Change rubocop to allow 100 character lines. 2019-10-17 23:55:45 -04:00
permissive_respond_to.rb Add a PermissiveRespondTo extension for Mashes 2019-11-17 11:36:31 -06:00
safe_assignment.rb [rubocop] Improve our RuboCop setup 2018-09-30 14:59:58 -05:00
symbolize_keys.rb Update Rubocop and address the addressable todos 2018-06-17 11:04:56 -05:00