IRb: how to start an interactive ruby session with pre-loaded classes
- by Shyam
Hi,
As I am going through my journey by adopting the Ruby language, I spend a lot of time inside IRb. It's just fantastic! But, as I am not very aware of it's capabilities, and still a nuby with Ruby, I would like to know the following:
How can I 'flush' the session,
without restarting IRb (or is this
not possible).
How can I configure IRb to load a
bunch of source files "hello.rb" and
"hello_objects.rb", i.e. at startup?
I am heavily working in these and it
would be nice to know a short hand to
load these classes, without manually
typing 'load' for each again.
Thank you for your answers, comments and feedback!