Module | Nanoc::HashExtensions |
In: |
lib/nanoc/base/core_ext/hash.rb
|
encoding: utf-8
Freezes the contents of the hash, as well as all hash values. The hash values will be frozen using {freeze_recursively} if they respond to that message, or freeze if they do not.
@see Array#freeze_recursively
@return [void]
@since 3.2.0
Returns a new hash where all keys are recursively converted to strings by calling {Nanoc::ArrayExtensions#stringify_keys_recursively} or {Nanoc::HashExtensions#stringify_keys_recursively}.
@return [Hash] The converted hash
Returns a new hash where all keys are recursively converted to symbols by calling {Nanoc::ArrayExtensions#symbolize_keys_recursively} or {Nanoc::HashExtensions#symbolize_keys_recursively}.
@return [Hash] The converted hash