class Symbol

Parent:
Object

Public Instance Methods

duplicable?() Show source
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 84
def duplicable?
  false
end

Symbols are not duplicable:

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

© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.