From: Matt Todd Date: 2006-08-21T16:13:51+09:00 Subject: Re: [QUIZ] QAPrototype (#91) - Updated solution with bells and whistles. On 8/20/06, Rick DeNatale 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.