Created
November 1, 2014 00:10
-
-
Save ipmsteven/801366e8f1e83dbacbb2 to your computer and use it in GitHub Desktop.
print autoload object name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module ModulePrepend | |
| def autoload(*args) | |
| puts args.inspect | |
| super | |
| end | |
| end | |
| class Module | |
| prepend ModulePrepend | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment