Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/roll/amp/autoload.rb

Overview

Patching of the standard Module class.

Instance Method Summary collapse

Instance Method Details

#use(klass, file_name) ⇒ Object

Calls ‘autoload`, prefixing file_name with common prefix.

Parameters:

  • klass (Symbol)

    the class or module to load.

  • file_name (String)

    the file name containing the class or module.



6
7
8
# File 'lib/roll/amp/autoload.rb', line 6

def use(klass, file_name)
  autoload(klass, "roll/amp/#{file_name}")
end