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



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

def instantiator
  RubyDataTypeInstantiator
end

#relative_pathObject



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

def relative_path
  lib_root? ? SYSTEM_TYPE_PATH : TYPE_PATH
end