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'

Instance Method Summary collapse

Methods inherited from SmartPath

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



127
128
129
# File 'lib/puppet/pops/loader/loader_paths.rb', line 127

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

#extensionObject



122
123
124
# File 'lib/puppet/pops/loader/loader_paths.rb', line 122

def extension
  EXTENSION
end