Class: Symbol

Inherits:
Object show all
Defined in:
lib/chewy/backports/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

Symbols are not duplicable:

:my_symbol.duplicable? # => false :my_symbol.dup # => TypeError: can't dup Symbol

Returns:

  • (Boolean)


64
65
66
# File 'lib/chewy/backports/duplicable.rb', line 64

def duplicable?
  false
end