Class: Dragonfly::FileDataStore::YAMLMetaStore

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


49
50
51
# File 'lib/dragonfly/file_data_store.rb', line 49

def dump(meta)
  YAML.dump(meta)
end

#load(string) ⇒ Object


53
54
55
# File 'lib/dragonfly/file_data_store.rb', line 53

def load(string)
  YAML.load(string)
end

#meta_path(data_path) ⇒ Object


45
46
47
# File 'lib/dragonfly/file_data_store.rb', line 45

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