Class: SeedGimmick::SeedIO::YamlFile

Inherits:
Base
  • Object
show all
Defined in:
lib/seed_gimmick/seed_io/yaml_file.rb

Instance Attribute Summary

Attributes inherited from Base

#seed_file

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from SeedGimmick::SeedIO::Base

Instance Method Details

#load_dataObject



4
5
6
7
# File 'lib/seed_gimmick/seed_io/yaml_file.rb', line 4

def load_data
  data = YAML.load_file(seed_file) || (raise LoadFailed.new(seed_file))
  data.values
end