Class: Symbol
- Defined in:
- motion/core_ext/object/to_json.rb,
motion/core_ext/object/duplicable.rb
Instance Method Summary collapse
-
#duplicable? ⇒ Boolean
Symbols are not duplicable:.
-
#to_json ⇒ Object
Returns
self
as string.
Instance Method Details
#duplicable? ⇒ Boolean
Symbols are not duplicable:
:my_symbol.duplicable? # => false
:my_symbol.dup # => TypeError: can't dup Symbol
64 65 66 |
# File 'motion/core_ext/object/duplicable.rb', line 64 def duplicable? false end |
#to_json ⇒ Object
Returns self
as string.
82 83 84 |
# File 'motion/core_ext/object/to_json.rb', line 82 def to_json self.to_s end |