Created
September 18, 2012 06:45
-
-
Save jamesmoriarty/3741657 to your computer and use it in GitHub Desktop.
require_relative
This file contains 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
# File lib/extensions/kernel.rb, line 38 | |
def require_relative(path) | |
require File.join(File.dirname(caller[0]), path.to_str) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment