Class: Symbol

Inherits:
Object show all
Defined in:
lib/backports/active_support/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



63
64
65
# File 'lib/backports/active_support/duplicable.rb', line 63

def duplicable?
  false
end