Class: OptParseValidator::ConfigFilesLoaderMerger::ConfigFile::YML
- Defined in:
- lib/opt_parse_validator/config_files_loader_merger/yml.rb
Overview
Yaml Implementation
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#parse(opts = {}) ⇒ Hash
A { ‘key’ => value } hash.
Methods inherited from Base
Constructor Details
This class inherits a constructor from OptParseValidator::ConfigFilesLoaderMerger::ConfigFile::Base
Instance Method Details
#parse(opts = {}) ⇒ Hash
Returns a { ‘key’ => value } hash.
14 15 16 |
# File 'lib/opt_parse_validator/config_files_loader_merger/yml.rb', line 14 def parse(opts = {}) YAML.safe_load(File.read(path), *opts[:yaml_arguments]) || {} end |