Created
October 20, 2022 19:18
-
-
Save awesome/582122174b5632d7e1fbae3591a5805e to your computer and use it in GitHub Desktop.
ruby "require a local file or gem in irb" via https://stackoverflow.com/questions/43519292/load-file-from-local-gem-in-irb#46941281
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
# via https://stackoverflow.com/questions/43519292/load-file-from-local-gem-in-irb#46941281 | |
# | |
# If you want to require a local file or gem in irb, I like this method: | |
# | |
# irb -I lib -r usps_countries | |
# This allows you to then require the module in your new irb instance: | |
# | |
# require 'usps_countries' | |
# Options used: | |
# | |
# -I path Specify $LOAD_PATH directory | |
# -r load-module Same as `ruby -r' | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment