Sha256: 47954c7f100751f15fac563dd7a5baecbef0d8411b31e33d2f080918c4c9e83c

Contents?: true

Size: 506 Bytes

Versions: 6

Compression:

Stored size: 506 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

    end #module Object
  end # module CoreExt
end # module IceNine

# Add Object#deep_freeze
Object.instance_eval { include IceNine::CoreExt::Object }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ice_nine-0.7.0 lib/ice_nine/core_ext/object.rb
ice_nine-0.6.0 lib/ice_nine/core_ext/object.rb
ice_nine-0.5.0 lib/ice_nine/core_ext/object.rb
ice_nine-0.4.0 lib/ice_nine/core_ext/object.rb
ice_nine-0.3.0 lib/ice_nine/core_ext/object.rb
ice_nine-0.2.0 lib/ice_nine/core_ext/object.rb