Class: IceNine::Freezer::NoFreeze

Inherits:
IceNine::Freezer show all
Defined in:
lib/ice_nine/freezer/no_freeze.rb

Overview

A freezer class that does not freeze anything

Constant Summary

Constants inherited from IceNine::Freezer

BasicObject

Class Method Summary collapse

Methods inherited from IceNine::Freezer

[], const_lookup, deep_freeze, deep_freeze!

Class Method Details

.guarded_deep_freeze(object, _recursion_guard) ⇒ Object

Pass through the object without freezing it

Examples:

object = IceNine::Freezer::NoFreeze.deep_freeze(object)
object.frozen?  # => false

Parameters:

Returns:


19
20
21
# File 'lib/ice_nine/freezer/no_freeze.rb', line 19

def self.guarded_deep_freeze(object, _recursion_guard)
  object
end