Class: PBSimply::DocDB::Marshal

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

Overview

Use Ruby Marshal

Instance Method Summary collapse

Methods inherited from PBSimply::DocDB

#dump, #exist?, #load, #path

Constructor Details

#initialize(dir) ⇒ Marshal

Returns a new instance of Marshal.



51
52
53
54
55
# File 'lib/pbsimply/docdb.rb', line 51

def initialize(dir)
  @dir = dir
  @store_class = ::Marshal
  @ext = "rbm"
end

Instance Method Details

#cmp_obj(frontmatter) ⇒ Object



57
58
59
# File 'lib/pbsimply/docdb.rb', line 57

def cmp_obj(frontmatter)
  frontmatter.dup
end

#rmodeObject



65
66
67
# File 'lib/pbsimply/docdb.rb', line 65

def rmode
  "rb"
end

#wmodeObject



61
62
63
# File 'lib/pbsimply/docdb.rb', line 61

def wmode
  "wb"
end