Sha256: c78c9e18492a2f583d7f93576107225a736ad49d20801094f04ac9dcf84e6af6

Contents?: true

Size: 496 Bytes

Versions: 6

Compression:

Stored size: 496 Bytes

Contents

module Mutant
  # Module for support methods
  #
  # They would normally be defined on the root namespace.
  # But it is easier to create the Zombie when there are no
  # References to the root namespace name within the library.
  #
  module Helper

    # Return deep clone of object
    #
    # @param [Object] object
    #
    # @return [Object] object
    #
    # @api private
    #
    def self.deep_clone(object)
      Marshal.load(Marshal.dump(object))
    end

  end # Helper
end # Mutant

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.3.0.beta7 lib/mutant/helper.rb
mutant-0.3.0.beta6 lib/mutant/helper.rb
mutant-0.3.0.beta5 lib/mutant/helper.rb
mutant-0.3.0.beta4 lib/mutant/helper.rb
mutant-0.3.0.beta3 lib/mutant/helper.rb
mutant-0.3.0.beta2 lib/mutant/helper.rb