Sha256: f58c23d42e052e4d780a6af1dfe3feb64ffcbbbadb46455e4631c344cb7cc15d
Contents?: true
Size: 545 Bytes
Versions: 164
Compression:
Stored size: 545 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Extensions #:nodoc: module Hash #:nodoc: module DeepCopy #:nodoc: # Make a deep copy of the hash. # # @example Make a deep copy. # { :test => "value" }._deep_copy # # @return [ Hash ] The deep copy. # # @since 2.4.0 def _deep_copy {}.tap do |copy| each_pair do |key, value| copy[key] = value._deep_copy end end end end end end end
Version data entries
164 entries across 72 versions & 3 rubygems