Class: Avm::Sources::Base::SubsPaths

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/sources/base/subs_paths.rb

Constant Summary collapse

SUBS_PATH_SEPARATOR =
':'

Instance Method Summary collapse

Instance Method Details

#configured_pathsArray<String>

Returns:

  • (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

#pathString

Returns:

  • (String)


14
15
16
# File 'lib/avm/sources/base/subs_paths.rb', line 14

def path
  paths.join(SUBS_PATH_SEPARATOR)
end

#pathsArray<String>

Returns:

  • (Array<String>)


19
20
21
# File 'lib/avm/sources/base/subs_paths.rb', line 19

def paths
  configured_paths || default_paths
end