Can you 'require' ruby file in irb session, automatically, on every command?
问题 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 to be able to edit the file.rb, and be able to see changes immediately. Example: assume new_method did not exist when I first required file.rb: > o.new_method Which will return an error. Is there a sandbox/developer mode or a method whereby I can achieve the above without having to reload the file every time? Require will not work after the first require, regardless.