Class: Object

Inherits:
BasicObject
Defined in:
lib/core_ext/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

Can you safely .dup this object? False for nil, false, true, symbols, and numbers; true otherwise.

Returns:

  • (Boolean)


4
5
6
# File 'lib/core_ext/duplicable.rb', line 4

def duplicable?
  true
end