Class: SeedGimmick::SeedIO::YamlFile
- Defined in:
- lib/seed_gimmick/seed_io/yaml_file.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from SeedGimmick::SeedIO::Base
Instance Method Details
#load_data ⇒ Object
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 |