Top Level Namespace

Defined Under Namespace

Modules: Kernel Classes: Module

Class Method Summary collapse

Class Method Details

.autoload(cname, path) ⇒ String

Toplevel autoload method.

Parameters:

  • cname (#to_sym)

    The constants name.

  • path (String)

    File path to require.

Returns:

  • (String)

    The $AUTOLOAD table.



15
16
17
# File 'lib/autoload.rb', line 15

def self.autoload(cname, path)
  $AUTOLOAD[[Object, cname.to_sym]] << path
end