[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: #returning and #tap
From:       James Edward Gray II <james () grayproductions ! net>
Date:       2006-11-08 14:53:41
Message-ID: B3F6867E-B3AC-4180-87F8-504836C6DF94 () grayproductions ! net
[Download RAW message or body]

On Nov 8, 2006, at 8:40 AM, Trans wrote:

> Had use for this today: #returning is a convenience method you'll find
> in both Facets and ActiveSupport. Jamis' blogged it the other day:
>
>
> http://weblog.jamisbuck.org/2006/10/27/mining-activesupport-object- 
> returning
>
> Any one else think this is worthy of standard Ruby?
>
> Also, a cool twist on the same concept is #tap. Check out the
> MenTaLgeniuS:
>
>
> http://moonbase.rydia.net/mental/blog/programming/eavesdropping-on- 
> expressions.html

One of the comments to the original article combines both methods  
into a with() method that seems to be the best of both worlds.

James Edward Gray II

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic