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 Attribute Summary

Attributes inherited from SmartPath

#generic_path

Instance Method Summary collapse

Methods inherited from RubySmartPath

#effective_path, #extension

Methods inherited from SmartPath

#effective_path, #fuzzy_matching?, #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



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

def instantiator
  RubyDataTypeInstantiator
end

#relative_pathObject



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

def relative_path
  lib_root? ? SYSTEM_TYPE_PATH : TYPE_PATH
end