Returns a deep copy of hash.
# File lib/gorillib/hashlike/deep_dup.rb, line 5 def deep_dup duplicate = self.dup duplicate.each_pair do |k,v| tv = duplicate[k] duplicate[k] = tv.is_a?(Hash) && v.is_a?(Hash) ? tv.deep_dup : v end duplicate end
[Validate]
Generated with the Darkfish Rdoc Generator 2.