Sha256: 9757991e8a51431c496ca19a9861d91ee424aa465414dcc40d43cf11c21620cd
Contents?: true
Size: 750 Bytes
Versions: 12
Compression:
Stored size: 750 Bytes
Contents
# encoding: utf-8 module IceNine # Core Ruby extensions module CoreExt # Extend Object with deep freezing module Object # Deep freeze an object # # @example # object = object.deep_freeze # # @return [self] # # @api public def deep_freeze IceNine.deep_freeze(self) end # Deep freeze an object # # @see IceNine.deep_freeze! # # @example # object = object.deep_freeze! # # @return [self] # # @api public def deep_freeze! IceNine.deep_freeze!(self) end end # Object end # CoreExt end # IceNine # Add Object#deep_freeze Object.instance_eval { include IceNine::CoreExt::Object }
Version data entries
12 entries across 10 versions & 4 rubygems