From: Grant Hutchins Date: 2007-10-15T10:20:10+09:00 Subject: Re: irb, to learn more... On Oct 14, 4:08 pm, John Joyce wrote: > Here's an interesting thing you can do in irb: > irb > > You can run an instance of irb within irb. How very Ruby!? > In irb you can also do this: > > methods > > (or my preferred approach...) > methods.sort > > irb itself has some interesting abilities. Also you can do irb(object) and then you will be executing code in the context of that object. In other words, you can jump into a class and define an instance method on it directly, or jump into an instance and toy around with its methods and instance variables all within its context. Ctrl-D kicks you back out to the parent irb instance.