Created
August 11, 2009 09:20
-
-
Save wtnabe/165719 to your computer and use it in GitHub Desktop.
A tip for simply writing "require LIB", in gem's bin/script
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
# | |
# for gem's bin/script | |
# | |
unless ( ENV['PATH'].split( File::PATH_SEPARATOR ).include?( File.dirname( __FILE__ ) ) ) | |
$LOAD_PATH << File.expand_path( "../lib", File.dirname( __FILE__ ) ) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment