Class: Puppet::Pops::Loader::LoaderPaths::RubySmartPath

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

Direct Known Subclasses

DataTypePath, FunctionPath3x, FunctionPath4x

Constant Summary collapse

EXTENSION =
'.rb'.freeze

Instance Attribute Summary

Attributes inherited from SmartPath

#generic_path

Instance Method Summary collapse

Methods inherited from SmartPath

#fuzzy_matching?, #initialize, #instantiator, #lib_root?, #relative_path, #root_path, #typed_name, #valid_name?, #valid_path?

Constructor Details

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

Instance Method Details

#effective_path(typed_name, start_index_in_name) ⇒ Object

Duplication of extension information, but avoids one call


129
130
131
# File 'lib/puppet/pops/loader/loader_paths.rb', line 129

def effective_path(typed_name, start_index_in_name)
  "#{File.join(generic_path, typed_name.name_parts)}.rb"
end

#extensionObject


124
125
126
# File 'lib/puppet/pops/loader/loader_paths.rb', line 124

def extension
  EXTENSION
end