class Puppet::Pops::Loader::PredefinedLoader

A PredefinedLoader is a loader that is manually populated with loaded elements before being used. It never loads anything on its own.

Public Instance Methods

allow_shadowing?() click to toggle source

Allows shadowing since this loader is used internally for things like function local types And they should win as there is otherwise a risk that the local types clash with built in types that were added after the function was written, or by resource types loaded by the 3x auto loader.

   # File lib/puppet/pops/loader/predefined_loader.rb
19 def allow_shadowing?
20   true
21 end
find(typed_name) click to toggle source
  # File lib/puppet/pops/loader/predefined_loader.rb
7 def find(typed_name)
8   nil
9 end
synchronize() { || ... } click to toggle source
   # File lib/puppet/pops/loader/predefined_loader.rb
23 def synchronize(&block)
24   yield
25 end
to_s() click to toggle source
   # File lib/puppet/pops/loader/predefined_loader.rb
11 def to_s()
12   "(PredefinedLoader '#{loader_name}')"
13 end