If you only need to load one file into IRB you can invoke it with irb -r ./your_file.rb
if it is in the same directory.
This automatically requires the file and allows you to work with it immediately.
If you only need to load one file into IRB you can invoke it with irb -r ./your_file.rb
if it is in the same directory.
This automatically requires the file and allows you to work with it immediately.