Class: Symbol
- Defined in:
- activesupport/lib/active_support/json/encoding.rb,
activesupport/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:
181 |
# File 'activesupport/lib/active_support/json/encoding.rb', line 181 def as_json( = nil) to_s end |
#duplicable? ⇒ Boolean
Symbols are not duplicable:
:my_symbol.duplicable? # => false
:my_symbol.dup # => TypeError: can't dup Symbol
68 69 70 |
# File 'activesupport/lib/active_support/core_ext/object/duplicable.rb', line 68 def duplicable? false end |