Sha256: f5d330261ca19f509cb9b95ecd95acc18d1aa408857d36587a9fc9c2b876bfe6

Contents?: true

Size: 164 Bytes

Versions: 176

Compression:

Stored size: 164 Bytes

Contents

module Tins
  module DeepDup
    def deep_dup
      Marshal.load(Marshal.dump(self))
    rescue TypeError
      return self
    end
  end
end

require 'tins/alias'

Version data entries

176 entries across 158 versions & 9 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/tins-1.14.0/lib/tins/deep_dup.rb
tdiary-5.0.5 vendor/bundle/gems/tins-1.13.2/lib/tins/deep_dup.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/tins-1.13.2/lib/tins/deep_dup.rb
tins-1.14.0 lib/tins/deep_dup.rb
tins-1.13.3 lib/tins/deep_dup.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/tins-1.13.2/lib/tins/deep_dup.rb
tdiary-5.0.4 vendor/bundle/gems/tins-1.13.2/lib/tins/deep_dup.rb
tins-1.13.2 lib/tins/deep_dup.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/tins-1.13.0/lib/tins/deep_dup.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/tins-1.13.0/lib/tins/deep_dup.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/tins-1.13.0/lib/tins/deep_dup.rb
tins-1.13.0 lib/tins/deep_dup.rb
tdiary-5.0.2 vendor/bundle/gems/tins-1.12.0/lib/tins/deep_dup.rb
tins-1.12.0 lib/tins/deep_dup.rb
tins-1.11.0 lib/tins/deep_dup.rb
tdiary-5.0.1 vendor/bundle/gems/tins-1.10.2/lib/tins/deep_dup.rb
tins-1.10.2 lib/tins/deep_dup.rb
tins-1.10.1 lib/tins/deep_dup.rb
tins-1.10.0 lib/tins/deep_dup.rb
tins-1.9.0 lib/tins/deep_dup.rb