I have a ruby module with a number of class files. Some of them load others. If the module is installed then require 'mymodule/foo' loads foo.rb from the installed module. But what if I want to test code changes that I have made without building a new gem and installing it?
I can do something like this but it's cumbersome:
#!/usr/bin/env ruby
require 'mymodule/foo'
# require 'foo.rb'
But I have to constantly remember to make sure the right one is commented when building the new gem. I am proficient in Ruby but by no means an expert.