> I'm not claiming this is good code - I know it's not.
> But it was fun to write :) I think it shows how flexible
> Ruby is. The end syntax is very readable, though the method
> chaining isn't. And the method names leave something to be
> desired.

I definitely like the calling syntax.  As you say, it hides the extra
Proc away and hence makes it look cleaner, I think.

> And I'm not suggesting the OP show this to his friend :)

Too late :-).  I think he'll like it, anyway!





************************************************************************

If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. 

Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses.  The views expressed here do not necessarily represent those of Hyperion.

For more information about Hyperion, please visit our Web site at www.hyperion.com