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 20 def allow_shadowing? 21 true 22 end
find(typed_name)
click to toggle source
# File lib/puppet/pops/loader/predefined_loader.rb 8 def find(typed_name) 9 nil 10 end
synchronize() { || ... }
click to toggle source
# File lib/puppet/pops/loader/predefined_loader.rb 24 def synchronize(&block) 25 yield 26 end
to_s()
click to toggle source
# File lib/puppet/pops/loader/predefined_loader.rb 12 def to_s() 13 "(PredefinedLoader '#{loader_name}')" 14 end