Class: Hash
Overview
:nodoc:
Instance Method Summary collapse
Methods included from Expandable
Instance Method Details
#deep_dup ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/core_ext.rb', line 75 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 |