Class: OptParseValidator::ConfigFilesLoaderMerger::ConfigFile::JSON
- Defined in:
- lib/opt_parse_validator/config_files_loader_merger/json.rb
Overview
Json 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.
12 13 14 |
# File 'lib/opt_parse_validator/config_files_loader_merger/json.rb', line 12 def parse(_opts = {}) ::JSON.parse(File.read(path)) end |