Sha256: c420d73c82a8f9343100a09483f912eb5832ab667e0a870f2ea89b7e04d7890a

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 Bytes

Contents

class Object #:nodoc:
  # 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 #:nodoc:
  def dup?   ; false ; end
  def clone? ; false ; end
end

class FalseClass #:nodoc:
  def dup?   ; false ; end
  def clone? ; false ; end
end

class TrueClass #:nodoc:
  def dup?   ; false ; end
  def clone? ; false ; end
end

class Symbol #:nodoc:
  def dup?   ; false ; end
  def clone? ; false ; end
end

class Numeric #:nodoc:
  def dup?   ; false ; end
  def clone? ; false ; end
end

# :facets: extra

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-2.7.0 lib/core/facets/duplicable.rb