From: Cameron McBride Date: 2007-11-20T11:47:24+09:00 Subject: Re: Using irb as a REPL On 11/19/07, S. Robert James wrote: > On Nov 19, 9:07 pm, Cameron McBride wrote: > > > > hmmm, I've also had some problems trying to add a command interface to > > some code. I found trying to bend IRB to fit the needs seems to be > > trickier than just coding up a solution in readline directly. Is that > > really the best solution? > > > > Cameron > > Then you miss out on the full power of Ruby in your interface! > The beauty of using a REPL or IRB is that you have an easy command > line interface, with automatic scripting when you need it, expandable > to the full power of the host language as needed. Sorry, I wasn't clear. I'm talking about building a ruby library and then the CLI with readline does a stateful eval. Problem is that it reimplements functionality that already exists in IRB. Cameron