Class: Symbol

Inherits:
Object show all
Defined in:
lib/wedge/utilis/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)


73
74
75
# File 'lib/wedge/utilis/duplicable.rb', line 73

def duplicable?
  false
end