Last active
September 6, 2018 18:21
-
-
Save betawax/647f3581473c8df793972b60c74a6c23 to your computer and use it in GitHub Desktop.
Ruby 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
# foobar.rb | |
lib = File.expand_path("../lib", __FILE__) | |
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
# lib/foobar.rb | |
$LOAD_PATH.unshift File.dirname(__FILE__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment