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

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/ice_nine-0.11.2/lib/ice_nine/core_ext/object.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/ice_nine-0.11.2/lib/ice_nine/core_ext/object.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/ice_nine-0.11.2/lib/ice_nine/core_ext/object.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/ice_nine-0.11.2/lib/ice_nine/core_ext/object.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/ice_nine-0.11.2/lib/ice_nine/core_ext/object.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/ice_nine-0.11.2/lib/ice_nine/core_ext/object.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/ice_nine-0.11.2/lib/ice_nine/core_ext/object.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/ice_nine-0.11.2/lib/ice_nine/core_ext/object.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/ice_nine-0.11.2/lib/ice_nine/core_ext/object.rb
ice_nine-0.11.2 lib/ice_nine/core_ext/object.rb
ice_nine-0.11.1 lib/ice_nine/core_ext/object.rb
ice_nine-0.11.0 lib/ice_nine/core_ext/object.rb