lib/nanoc/base/core_ext/hash.rb
def freeze_recursively
    return if self.frozen?
    freeze
    each_pair do |key, value|
      if value.respond_to?(:freeze_recursively)
        value.freeze_recursively
      else
        value.freeze
      end
    end
  end
# 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
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.
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 .
def freeze_recursively
    return if self.frozen?
    freeze
    each_pair do |key, value|
      if value.respond_to?(:freeze_recursively)
        value.freeze_recursively
      else
        value.freeze
      end
    end
  end
def freeze_recursively return if self . frozen? freeze each_pair do | key , value | if value . respond_to? ( :freeze_recursively ) value . freeze_recursively else value . freeze end end end
Freezes the contents of the hash, as well as all hash values.
Freezes the contents of the hash as well as all hash values .
None
void
see
None
since
None