Class: YDD::DataManager

Inherits:
Object
  • Object
show all
Defined in:
lib/ydd/data_manager.rb

Class Method Summary collapse

Class Method Details

.dump(path) ⇒ Object



4
5
6
# File 'lib/ydd/data_manager.rb', line 4

def self.dump(path)
  SerializationHelper::Base.new(YamlDB::Helper).dump path
end

.load(path) ⇒ Object



8
9
10
11
12
# File 'lib/ydd/data_manager.rb', line 8

def self.load(path)
  if File.exists?(path)
    SerializationHelper::Base.new(YamlDB::Helper).load path
  end
end