Class: Dragonfly::FileDataStore::MarshalMetaStore

Inherits:
MetaStore show all
Defined in:
lib/dragonfly/file_data_store.rb

Instance Method Summary collapse

Methods inherited from MetaStore

#destroy, #read, #write

Instance Method Details

#dump(meta) ⇒ Object


63
64
65
# File 'lib/dragonfly/file_data_store.rb', line 63

def dump(meta)
  Marshal.dump(meta)
end

#load(string) ⇒ Object


67
68
69
# File 'lib/dragonfly/file_data_store.rb', line 67

def load(string)
  Utils.stringify_keys Marshal.load(string)
end

#meta_path(data_path) ⇒ Object


59
60
61
# File 'lib/dragonfly/file_data_store.rb', line 59

def meta_path(data_path)
  "#{data_path}.meta"
end