Sha256: ab75866869ceb71e204c189789b8d6a8bb0116517fe49079167e5b17df328cf9

Contents?: true

Size: 287 Bytes

Versions: 5

Compression:

Stored size: 287 Bytes

Contents

# coding: utf-8

module ThinReports
  module Core
    
    # @private
    module HashExtensions
      def simple_deep_copy
        inject({}) {|h, (k, v)| h[k] = (v.dup rescue v); h}
      end
    end
    
  end
end

# @private
class Hash
  include ThinReports::Core::HashExtensions
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.7.7 lib/thinreports/core/ext/hash.rb
thinreports-0.7.6 lib/thinreports/core/ext/hash.rb
thinreports-0.7.5 lib/thinreports/core/ext/hash.rb
thinreports-0.7.0 lib/thinreports/core/ext/hash.rb
thinreports-0.6.0.pre3 lib/thinreports/core/ext/hash.rb