Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/fidius-common/json_symbol_addon.rb
Overview
Part of the JSON Symbol Addon.
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ String
Encodes symbols as
String
, prefixed with “:”.
Instance Method Details
#as_json(options = nil) ⇒ String
Encodes symbols as String
, prefixed with “:”.
14 15 16 |
# File 'lib/fidius-common/json_symbol_addon.rb', line 14 def as_json( = nil) ":" + to_s end |