Re: Using irb as a REPL
On Nov 19, 9:07 pm, Cameron McBride <cameron.mcbr...@gmail.com> 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.
|