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

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

Direct Known Subclasses

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

#initialize, #instantiator, #relative_path, #root_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



89
90
91
# File 'lib/puppet/pops/loader/loader_paths.rb', line 89

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

#extensionObject



84
85
86
# File 'lib/puppet/pops/loader/loader_paths.rb', line 84

def extension
  EXTENSION
end