Class: ReeJson::ToJson

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_lib/packages/ree_json/package/ree_json/functions/to_json.rb

Instance Method Summary collapse

Instance Method Details

#call(object, **opts) ⇒ Object



33
34
35
36
37
38
# File 'lib/ree_lib/packages/ree_json/package/ree_json/functions/to_json.rb', line 33

def call(object, **opts)
  options = DEFAULT_OPTIONS
    .merge(opts)

  Oj.dump(object, options)
end