Module: Dry
- Defined in:
- lib/dry/config/deep_symbolizable.rb,
lib/dry/config.rb,
lib/dry/config/base.rb,
lib/dry/config/version.rb
Overview
Symbolizes all of hash’s keys and subkeys. Also allows for custom pre-processing of keys (e.g. downcasing, etc) if the block is given:
somehash.deep_symbolize { |key| key.downcase }
Usage: either include it into global Hash class to make it available to
to all hashes, or extend only your own hash objects with this
module.
E.g.:
1) class Hash; include DeepSymbolizable; end
2) myhash.extend DeepSymbolizable
Defined Under Namespace
Modules: Config