IRb: how to start an interactive ruby session with pre-loaded classes
Posted
by Shyam
on Stack Overflow
See other posts from Stack Overflow
or by Shyam
Published on 2010-04-16T11:32:16Z
Indexed on
2010/04/16
11:43 UTC
Read the original article
Hit count: 416
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!
© Stack Overflow or respective owner