Sha256: afa3ac8ce45bf5a9525048fc3b1328123453d93a396f465dbf0df511edc76eb4

Contents?: true

Size: 555 Bytes

Versions: 5

Compression:

Stored size: 555 Bytes

Contents

class Object
  # Can you safely call #dup on this object?
  # False for nil, false, true, symbols, and numbers; true otherwise.
  def dup?   ; true ; end
  def clone? ; true ; end
end

class NilClass
  def dup?   ; false ; end
  def clone? ; false ; end
end

class FalseClass
  def dup?   ; false ; end
  def clone? ; false ; end
end

class TrueClass
  def dup?   ; false ; end
  def clone? ; false ; end
end

class Symbol
  def dup?   ; false ; end
  def clone? ; false ; end
end

class Numeric
  def dup?   ; false ; end
  def clone? ; false ; end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
facets-2.8.4 lib/core/facets/duplicable.rb
facets-2.8.3 lib/core/facets/duplicable.rb
facets-2.8.2 lib/core/facets/duplicable.rb
facets-2.8.1 lib/core/facets/duplicable.rb
facets-2.8.0 lib/core/facets/duplicable.rb