Skip to content

Instantly share code, notes, and snippets.

@awesome
Created October 20, 2022 19:18
Show Gist options
  • Save awesome/582122174b5632d7e1fbae3591a5805e to your computer and use it in GitHub Desktop.
Save awesome/582122174b5632d7e1fbae3591a5805e to your computer and use it in GitHub Desktop.
# 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