On 8/20/06, Rick DeNatale <rick.denatale / gmail.com> wrote:
>
> 1) First, I added the ability to optionally use the Readline module to
> prompt for method source if it's available.  This allows the history
> in, say irb, to be used.  Note the use of class_eval to include the
> module. This allows the code to compile if the module isn't available.
>
> 2) I added a check to see if the method actually compiles, and loop
> back to reprompt if it doesn't.  This make the saving of the history
> of input using readline worthwhile.

I like how you handle getting the source much better. My
implementation has the user just #undo and redefine it... and no
Readline support. I might try to add that in, though. Great ideas,
though.

M.T.