Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/roll/amp/autoload.rb
Overview
Patching of the standard Module class.
Instance Method Summary collapse
-
#use(klass, file_name) ⇒ Object
Calls ‘autoload`, prefixing file_name with common prefix.
Instance Method Details
#use(klass, file_name) ⇒ Object
Calls ‘autoload`, prefixing file_name with common prefix.
6 7 8 |
# File 'lib/roll/amp/autoload.rb', line 6 def use(klass, file_name) autoload(klass, "roll/amp/#{file_name}") end |