Sha256: 38ceac0133356b7ae7bca3928b6854f64b62452607654f2fd44e8c9a5aa97fbc

Contents?: true

Size: 143 Bytes

Versions: 6

Compression:

Stored size: 143 Bytes

Contents

module EasyDiff
  module SafeDup
    def safe_dup
      begin
        self.dup
      rescue TypeError
        self
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/easy_diff-1.0.0/lib/easy_diff/safe_dup.rb
easy_diff-1.0.0 lib/easy_diff/safe_dup.rb
easy_diff-0.0.7 lib/easy_diff/safe_dup.rb
easy_diff-0.0.6 lib/easy_diff/safe_dup.rb
easy_diff-0.0.5 lib/easy_diff/safe_dup.rb
easy_diff-0.0.4 lib/easy_diff/safe_dup.rb