Class: Hash
Overview
:nodoc:
Instance Method Summary collapse
Methods included from Expandable
Instance Method Details
#deep_dup ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/core_ext.rb', line 65 def deep_dup hash = dup each_pair do |key, value| hash[key.dup] = if value.respond_to?(:deep_dup) value.deep_dup else value.dup end end hash end |