Class: Librarian::Config::FileSource
- Defined in:
- lib/librarian/config/file_source.rb
Constant Summary
Constants inherited from Source
Source::CONFIG_KEY_VALIDITY_PATTERN, Source::RAW_KEY_SUFFIX_VALIDITY_PATTERN
Instance Attribute Summary collapse
-
#config_path ⇒ Object
readonly
Returns the value of attribute config_path.
Attributes inherited from Source
Instance Method Summary collapse
-
#initialize(adapter_name, options = { }) ⇒ FileSource
constructor
A new instance of FileSource.
- #to_s ⇒ Object
Methods inherited from Source
#[], #[]=, config_key_validity_pattern, #keys, raw_key_suffix_validity_pattern
Constructor Details
#initialize(adapter_name, options = { }) ⇒ FileSource
Returns a new instance of FileSource.
12 13 14 15 16 |
# File 'lib/librarian/config/file_source.rb', line 12 def initialize(adapter_name, = { }) super self.config_path = .delete(:config_path) or raise ArgumentError, "must provide config_path" end |
Instance Attribute Details
#config_path ⇒ Object
Returns the value of attribute config_path.
9 10 11 |
# File 'lib/librarian/config/file_source.rb', line 9 def config_path @config_path end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/librarian/config/file_source.rb', line 18 def to_s config_path end |