encoding: utf-8
VERSION | = | '0.11.2'.freeze | Gem version |
Deep Freeze an object
@example
object = IceNine.deep_freeze(object)
@param [Object] object
@return [Object]
@api public
Deep Freeze an object
This method uses a faster algorithm that will assume objects that are `frozen?` do not need to be frozen deeply. Use this method when `object` contains no shallowly frozen objects that need deep freezing.
@example
IceNine.deep_freeze!(['a', 'b']).map(&:frozen?) # [true, true]
@example
IceNine.deep_freeze!(['a', 'b'].freeze).map(&:frozen?) # [false, false]
@param [Object] object
@return [Object]
@api public