Class: Symbol
- Defined in:
- lib/active_support/core_ext/object/json.rb,
lib/active_support/core_ext/object/duplicable.rb
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ Object
:nodoc:.
-
#duplicable? ⇒ Boolean
Symbols are not duplicable:.
Instance Method Details
#as_json(options = nil) ⇒ Object
:nodoc:
86 87 88 |
# File 'lib/active_support/core_ext/object/json.rb', line 86 def as_json( = nil) #:nodoc: to_s end |
#duplicable? ⇒ Boolean
Symbols are not duplicable:
:my_symbol.duplicable? # => false
:my_symbol.dup # => TypeError: can't dup Symbol
64 65 66 |
# File 'lib/active_support/core_ext/object/duplicable.rb', line 64 def duplicable? false end |