Module: IceNine::CoreExt::Object

Defined in:
lib/ice_nine/core_ext/object.rb

Overview

Extend Object with deep freezing

Instance Method Summary collapse

Instance Method Details

#deep_freezeself

Deep freeze an object

Examples:

object = object.deep_freeze

Returns:

  • (self)

19
20
21
# File 'lib/ice_nine/core_ext/object.rb', line 19

def deep_freeze
  IceNine.deep_freeze(self)
end

#deep_freeze!self

Deep freeze an object

Examples:

object = object.deep_freeze!

Returns:

  • (self)

See Also:


33
34
35
# File 'lib/ice_nine/core_ext/object.rb', line 33

def deep_freeze!
  IceNine.deep_freeze!(self)
end