Sha256: 21ca293cb299073ddce7903aece88b9346fef49267acdf4cb52f8fe856c74cb0

Contents?: true

Size: 142 Bytes

Versions: 4

Compression:

Stored size: 142 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
easy_diff-0.0.3 lib/easy_diff/safe_dup.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/easy_diff-0.0.2/lib/easy_diff/safe_dup.rb
easy_diff-0.0.2 lib/easy_diff/safe_dup.rb
easy_diff-0.0.1 lib/easy_diff/safe_dup.rb