Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created August 11, 2009 09:20
Show Gist options
  • Save wtnabe/165719 to your computer and use it in GitHub Desktop.
Save wtnabe/165719 to your computer and use it in GitHub Desktop.
A tip for simply writing "require LIB", in gem's bin/script
#
# 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