Class: DevSuite::Utils::FileLoader::Loader::Yaml
- Inherits:
-
Base
- Object
- Construct::Component::Base
- Base
- DevSuite::Utils::FileLoader::Loader::Yaml
- Defined in:
- lib/dev_suite/utils/file_loader/loader/yaml.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Construct::Component::Base
Class Method Details
.extensions ⇒ Object
9 10 11 |
# File 'lib/dev_suite/utils/file_loader/loader/yaml.rb', line 9 def extensions ["yml", "yaml"] end |
Instance Method Details
#load(path, safe: true) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/dev_suite/utils/file_loader/loader/yaml.rb', line 14 def load(path, safe: true) validate_file_existence!(path) parse_yaml_file(path, safe) rescue ::Psych::SyntaxError => e handle_yaml_parsing_error(path, e) end |