Created
May 7, 2009 16:25
-
-
Save mwunsch/108192 to your computer and use it in GitHub Desktop.
$LOAD_PATH
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
# These two lines of code kind of do the same thing. | |
# They both add the directory of the file the Ruby interpreter | |
# is currently executing to the Load Path. | |
# Useful when no gem is installed. | |
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__))) | |
$:.unshift File.dirname(__FILE__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment