Class: PBSimply::DocDB::Oj

Inherits:
JSON show all
Defined in:
lib/pbsimply/docdb.rb

Overview

Use JSON with Oj gem

Instance Method Summary collapse

Methods inherited from PBSimply::DocDB

#cmp_obj, #dump, #exist?, #load, #path, #rmode, #wmode

Constructor Details

#initialize(dir) ⇒ Oj

Returns a new instance of Oj.



82
83
84
85
86
87
# File 'lib/pbsimply/docdb.rb', line 82

def initialize(dir)
  require 'oj'
  @dir = dir
  @ext = "json"
  @store_class = ::Oj
end