Class: Serega::SeregaJSON::OjDump
- Inherits:
-
Object
- Object
- Serega::SeregaJSON::OjDump
- Defined in:
- lib/serega/json/oj.rb
Overview
JSON dump adapter for ::Oj
Constant Summary collapse
- OPTS =
Default Oj serialization options
{mode: :compat}.freeze
Class Method Summary collapse
-
.call(data) ⇒ String
Dumps data to JSON string.
Class Method Details
.call(data) ⇒ String
Dumps data to JSON string
19 20 21 |
# File 'lib/serega/json/oj.rb', line 19 def self.call(data) ::Oj.dump(data, OPTS) end |