Class: Avm::Sources::Base::SubsPaths
- Inherits:
-
Object
- Object
- Avm::Sources::Base::SubsPaths
- Defined in:
- lib/avm/sources/base/subs_paths.rb
Constant Summary collapse
- SUBS_PATH_SEPARATOR =
':'
Instance Method Summary collapse
Instance Method Details
#configured_paths ⇒ Array<String>
24 25 26 27 28 |
# File 'lib/avm/sources/base/subs_paths.rb', line 24 def configured_paths source.configuration_entry(configuration_key).value.if_present do |v| v.split(SUBS_PATH_SEPARATOR) end end |
#path ⇒ String
14 15 16 |
# File 'lib/avm/sources/base/subs_paths.rb', line 14 def path paths.join(SUBS_PATH_SEPARATOR) end |
#paths ⇒ Array<String>
19 20 21 |
# File 'lib/avm/sources/base/subs_paths.rb', line 19 def paths configured_paths || default_paths end |