Class: Puppet::Pops::Loader::LoaderPaths::FunctionPath4x

Inherits:
RubySmartPath show all
Defined in:
lib/puppet/pops/loader/loader_paths.rb

Constant Summary collapse

SYSTEM_FUNCTION_PATH_4X =
File.join('puppet', 'functions').freeze
FUNCTION_PATH_4X =
File.join('lib', SYSTEM_FUNCTION_PATH_4X).freeze

Constants inherited from RubySmartPath

RubySmartPath::EXTENSION

Instance Method Summary collapse

Methods inherited from RubySmartPath

#effective_path, #extension

Methods inherited from SmartPath

#effective_path, #fuzzy_matching?, #generic_path, #initialize, #lib_root?, #root_path, #typed_name, #valid_name?, #valid_path?

Constructor Details

This class inherits a constructor from Puppet::Pops::Loader::LoaderPaths::SmartPath

Instance Method Details

#instantiatorObject



178
179
180
# File 'lib/puppet/pops/loader/loader_paths.rb', line 178

def instantiator
  RubyFunctionInstantiator
end

#relative_pathObject



174
175
176
# File 'lib/puppet/pops/loader/loader_paths.rb', line 174

def relative_path
  lib_root? ? SYSTEM_FUNCTION_PATH_4X : FUNCTION_PATH_4X
end