Class: Puppet::Pops::Loader::LoaderPaths::DataTypePath

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

Constant Summary collapse

SYSTEM_TYPE_PATH =
File.join('puppet', 'datatypes').freeze
TYPE_PATH =
File.join('lib', SYSTEM_TYPE_PATH).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



216
217
218
# File 'lib/puppet/pops/loader/loader_paths.rb', line 216

def instantiator
  RubyDataTypeInstantiator
end

#relative_pathObject



212
213
214
# File 'lib/puppet/pops/loader/loader_paths.rb', line 212

def relative_path
  lib_root? ? SYSTEM_TYPE_PATH : TYPE_PATH
end