From: Martin DeMello Date: 2005-04-11T19:09:52+09:00 Subject: Re: [ANN] fxirb 0.2.0 - Multiline Edit (and request for help) Csaba Henk wrote: > > but with irb, the api-friendly way is as follows: > > IRB.context.workspace.main irb.context.workspace.main actually > (that is, with an alternative config this might differ from the toplevel > object, but this form always gives you the object which is used by irb > for evaluation). > > So, just define #gets as a singleton method of the above object. perfect! thanks a lot - hopefully I'll actually manage to get something working tonight. martin