Sha256: b8e9829d4075a9646e2175991187b862a2c6091a25e2ee931cce64b055c73672
Contents?: true
Size: 472 Bytes
Versions: 46
Compression:
Stored size: 472 Bytes
Contents
class Object # Can you safely .dup this object? # False for nil, false, true, symbols, and numbers; true otherwise. def duplicable? true end end class NilClass #:nodoc: def duplicable? false end end class FalseClass #:nodoc: def duplicable? false end end class TrueClass #:nodoc: def duplicable? false end end class Symbol #:nodoc: def duplicable? false end end class Numeric #:nodoc: def duplicable? false end end
Version data entries
46 entries across 46 versions & 9 rubygems