Class: OptParseValidator::ConfigFilesLoaderMerger::ConfigFile::Base
- Inherits:
-
Object
- Object
- OptParseValidator::ConfigFilesLoaderMerger::ConfigFile::Base
- Defined in:
- lib/opt_parse_validator/config_files_loader_merger/base.rb
Overview
Base class, #parse should be implemented in child classes
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(path) ⇒ Base
constructor
A new instance of Base.
-
#parse ⇒ Hash
A { ‘key’ => value } hash.
Constructor Details
#initialize(path) ⇒ Base
Returns a new instance of Base.
11 12 13 |
# File 'lib/opt_parse_validator/config_files_loader_merger/base.rb', line 11 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
8 9 10 |
# File 'lib/opt_parse_validator/config_files_loader_merger/base.rb', line 8 def path @path end |
Instance Method Details
#==(other) ⇒ Object
20 21 22 |
# File 'lib/opt_parse_validator/config_files_loader_merger/base.rb', line 20 def ==(other) path == other.path end |
#parse ⇒ Hash
Returns a { ‘key’ => value } hash.
16 17 18 |
# File 'lib/opt_parse_validator/config_files_loader_merger/base.rb', line 16 def parse raise NotImplementedError end |