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
tins-1.38.0 lib/tins/deep_dup.rb
tins-1.37.1 lib/tins/deep_dup.rb
tins-1.37.0 lib/tins/deep_dup.rb
tins-1.36.1 lib/tins/deep_dup.rb
tins-1.36.0 lib/tins/deep_dup.rb
tins-1.35.0 lib/tins/deep_dup.rb
tins-1.34.0 lib/tins/deep_dup.rb
tins-1.33.0 lib/tins/deep_dup.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/lib/tins/deep_dup.rb
tins-1.32.1 lib/tins/deep_dup.rb
tins-1.32.0 lib/tins/deep_dup.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/lib/tins/deep_dup.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/lib/tins/deep_dup.rb
tins-1.31.1 lib/tins/deep_dup.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/tins-1.31.0/lib/tins/deep_dup.rb
tins-1.31.0 lib/tins/deep_dup.rb
tins-1.30.0 lib/tins/deep_dup.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/tins-1.29.1/lib/tins/deep_dup.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/tins-1.29.1/lib/tins/deep_dup.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/tins-1.29.1/lib/tins/deep_dup.rb