Class: Rabbitek::Utils::Oj

Inherits:
Object
  • Object
show all
Defined in:
lib/rabbitek/utils/oj.rb

Overview

Oj methods wrapper

Class Method Summary collapse

Class Method Details

.dump(obj) ⇒ Object



8
9
10
# File 'lib/rabbitek/utils/oj.rb', line 8

def self.dump(obj)
  ::Oj.dump(obj, mode: :compat)
end

.load(string) ⇒ Object



12
13
14
# File 'lib/rabbitek/utils/oj.rb', line 12

def self.load(string)
  ::Oj.load(string, mode: :compat)
end