I am currently editing a file, and I\'m using irb to test the api:
> require \'./file.rb\' > o = Object.new > o.method
I then want
What about require_dependency from ActiveSupport library?
require_dependency
require 'active_support/dependencies' #load it at the beginning require_dependency 'myscript.rb'
Then require_dependency should track the changes in myscript file and reload it.
myscript