kernel/common/module.rb
# Install a new Autoload object into the constants table
# See kernel/common/autoload.rb
Install a new Autoload object into the constants table
See kernel/common/autoload.rb
Install a new Autoload object into the constants table See kernel / common / autoload . rb
def autoload(name, path)
    name = normalize_const_name(name)
    raise TypeError, "autoload filename must be a String" unless path.kind_of? String
    raise ArgumentError, "empty file name" if path.empty?
    trigger = Autoload.new(name, self, path)
    constants_table[name] = LookupTable::Association.new(name, trigger)
    return nil
  end
def autoload ( name , path ) name = normalize_const_name ( name ) raise TypeError , "autoload filename must be a String" unless path . kind_of? String raise ArgumentError , "empty file name" if path . empty? trigger = Autoload . new ( name , self , path ) constants_table [ name ] = LookupTable :: Association . new ( name , trigger ) return nil end
Install a new Autoload object into the constants table
See kernel/common/autoload.rb
Install a new Autoload object into the constants table See kernel / common / autoload . rb
name
<not_specific>
path
<not_specific>