Sha256: a23e976e55236e20200aa1a8d9e18b9f5a6ba12fad905ece0091915640ca621f
Contents?: true
Size: 547 Bytes
Versions: 20
Compression:
Stored size: 547 Bytes
Contents
class Object # Can you safely .dup this object? # False for nil, false, true, symbols, numbers, and class objects; 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 class Class #:nodoc: def duplicable? false end end
Version data entries
20 entries across 20 versions & 4 rubygems