Class: PBSimply::DocDB::Oj
- Inherits:
-
JSON
- Object
- PBSimply::DocDB
- JSON
- PBSimply::DocDB::Oj
- Defined in:
- lib/pbsimply/docdb.rb
Overview
Use JSON with Oj gem
Instance Method Summary collapse
-
#initialize(dir) ⇒ Oj
constructor
A new instance of Oj.
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 |