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

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

Direct Known Subclasses

FunctionPath4x

Instance Attribute Summary

Attributes inherited from SmartPath

#generic_path

Instance Method Summary collapse

Methods inherited from SmartPath

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



72
73
74
# File 'lib/puppet/pops/loader/loader_paths.rb', line 72

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

#extensionObject



67
68
69
# File 'lib/puppet/pops/loader/loader_paths.rb', line 67

def extension
  ".rb"
end