class Symbol

Parent:
Object

Public Instance Methods

duplicable?() Show source

Symbols are not duplicable:

:my_symbol.duplicable? # => false
:my_symbol.dup         # => TypeError: can't dup Symbol
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 64
def duplicable?
  false
end

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