From: Intransition Date: 2012-01-17T00:48:13+09:00 Subject: Re: The Better Code ------=_Part_5_23500713.1326728891537 Content-Type: multipart/alternative; boundary="----=_Part_6_18092109.1326728891537" ------=_Part_6_18092109.1326728891537 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Sunday, January 15, 2012 10:24:38 PM UTC-5, Gavin Sinclair wrote: > > Anything with this line in it can't be considered "better" than anything > else :) > > > o = Hash === a.last ? a.pop : {} > I concur with that! You have an alternative? Thankfully Ruby 2.0 will (finally) will make it obsolete. ------=_Part_6_18092109.1326728891537 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

On Sunday, January 15, 2012 10:24:38 PM UTC-5, Gavin Sinclair wrote:
Anything with this line in it can't be considered "better" than anything else :)

>       o = Hash === a.last ? a.pop : {}


I concur with that! You have an alternative? 

Thankfully Ruby 2.0 will (finally) will make it obsolete.

------=_Part_6_18092109.1326728891537-- ------=_Part_5_23500713.1326728891537--