Module: Omnipay::Helpers
- Defined in:
- lib/omnipay/helpers.rb
Class Method Summary collapse
-
.deep_dup(hash) ⇒ Object
Deep hash clone.
Class Method Details
.deep_dup(hash) ⇒ Object
Deep hash clone
6 7 8 9 10 11 |
# File 'lib/omnipay/helpers.rb', line 6 def self.deep_dup(hash) hash.inject({}) do |clone, (key, value)| clone[key] = value.dup clone end end |