Sha256: f06a734235fb1d81fb117710636a1030c0eebc779ef8090039800a815c602406
Contents?: true
Size: 532 Bytes
Versions: 178
Compression:
Stored size: 532 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 class Class #:nodoc: def duplicable? false end end
Version data entries
178 entries across 145 versions & 25 rubygems