hacks/deep_freeze |
class Object < Object |
Public Methods |
Freeze an object and all it's instance variables. Will not recurse past max_depth (specify a negative number to recurse indefinitely).
To deep-freeze containers (such as Array), specify follow_each=true.
Note that a class may define its own deep_freeze method if this one is not suitable.
TODO: Does not deep freeze certain data types, such as Binding
TODO: Does not properly deep freeze classes (will omit class variables)
Protected Methods |