# DO NOT REMOVE YET. needed later? when there is the need to decamel a classname def de_camel(fq_name)
fq_name.to_s.gsub(/::/, '/').
gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
gsub(/([a-z\d])([A-Z])/,'\1_\2').
tr("-", "_").
downcase
end
Generic path, in the sense of “if there are any entities of this kind to load, where are they?”
Effective path is the generic path + the name part(s) + extension.
# File lib/puppet/pops/loader/loader_paths.rb, line 53 def effective_path(typed_name, start_index_in_name) "#{File.join(generic_path, typed_name.name_parts)}#{extension}" end
# File lib/puppet/pops/loader/loader_paths.rb, line 61 def instantiator() raise NotImplementedError.new end
# File lib/puppet/pops/loader/loader_paths.rb, line 57 def relative_path() raise NotImplementedError.new end
Creates SmartPath for the given loader (loader knows how to check for existence etc.)
# File lib/puppet/pops/loader/loader_paths.rb, line 40 def initialize(loader) @loader = loader end