lib/puppet/util/instance_loader.rb
# Define a new type of autoloading.
Define a new type of autoloading.
Define a new type of autoloading .
def instance_load(type, path, options = {})
    @autoloaders ||= {}
    @instances ||= {}
    type = type.intern
    @instances[type] = {}
    @autoloaders[type] = Puppet::Util::Autoload.new(self, path, options)
    unless respond_to?(type)
      meta_def(type) do |name|
        loaded_instance(type, name)
      end
    end
  end
def instance_load ( type , path , options = { } ) @autoloaders ||= { } @instances ||= { } type = type . intern @instances [ type ] = { } @autoloaders [ type ] = Puppet :: Util :: Autoload . new ( self , path , options ) unless respond_to? ( type ) meta_def ( type ) do | name | loaded_instance ( type , name ) end end end
Define a new type of autoloading.
Define a new type of autoloading .
# Now define our new simple methods
type
<not_specific>
path
<not_specific>
options
<not_specific>