Class: Pilipinas::Loader
- Inherits:
-
Object
- Object
- Pilipinas::Loader
- Defined in:
- lib/pilipinas/loader.rb
Class Method Summary collapse
Class Method Details
.data_file ⇒ Object
7 8 9 |
# File 'lib/pilipinas/loader.rb', line 7 def self.data_file File.('../../data/data.yml', __FILE__) end |
.run ⇒ Object
3 4 5 |
# File 'lib/pilipinas/loader.rb', line 3 def self.run YamlDb::SerializationHelper::Base.new(YamlDb::Helper).load(data_file) end |