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