Sha256: de3bda81f83a646874d562287c5cfdb45bfb50de257601880903e3630f72ba1f

Contents?: true

Size: 539 Bytes

Versions: 7

Compression:

Stored size: 539 Bytes

Contents

# encoding: utf-8

module IceNine
  class Freezer

    # A freezer class that does not freeze anything
    class NoFreeze < self

      # Pass through the object without freezing it
      #
      # @example
      #   object = IceNine::Freezer::NoFreeze.deep_freeze(object)
      #   object.frozen?  # => false
      #
      # @param [Object] object
      #
      # @return [Object]
      #
      # @api public
      def self.deep_freeze(object)
        object
      end

    end # class NoFreeze
  end # class Freezer
end # module IceNine

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ice_nine-0.9.0 lib/ice_nine/freezer/no_freeze.rb
ice_nine-0.8.0 lib/ice_nine/freezer/no_freeze.rb
ice_nine-0.7.0 lib/ice_nine/freezer/no_freeze.rb
ice_nine-0.6.0 lib/ice_nine/freezer/no_freeze.rb
ice_nine-0.5.0 lib/ice_nine/freezer/no_freeze.rb
ice_nine-0.4.0 lib/ice_nine/freezer/no_freeze.rb
ice_nine-0.3.0 lib/ice_nine/freezer/no_freeze.rb