Hi guys,

thanks for all suggestions.

>> myLongListNameIDontWantToRepeat.tap do |l|
>>   l.psize
>>   l.add 10
>>   l.psize
>>   ...
>> end
>
> I was going to suggest #tap myself, but I realized it's not as "bare"
> as instance_eval/exec.

Yep, the instance_exec version is bit better, but I think #tap will do.

Thanks,
Maksym.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to