Method: Puppet::Pops::Loaders#private_loader_for_module

Defined in:
lib/puppet/pops/loaders.rb

#private_loader_for_module(module_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



248
249
250
251
252
253
254
255
256
257
# File 'lib/puppet/pops/loaders.rb', line 248

def private_loader_for_module(module_name)
  md = @module_resolver[module_name] || (return nil)
  # Since there is interest in the visibility from the perspective of entities contained in the
  # module, it must be resolved (to provide this visibility).
  # See {#configure_loaders_for_modules}
  unless md.resolved?
    @module_resolver.resolve(md)
  end
  md.private_loader
end