Class: PBSimply::DocDB::JSON

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

Overview

Use JSON with bundled library

Direct Known Subclasses

Oj

Instance Method Summary collapse

Methods inherited from PBSimply::DocDB

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

Constructor Details

#initialize(dir) ⇒ JSON

Returns a new instance of JSON.



72
73
74
75
76
77
# File 'lib/pbsimply/docdb.rb', line 72

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