From: Matthew Moss Date: 2006-03-29T07:40:55+09:00 Subject: Re: Opposite of ||= pattern? Actually, I like using .first instead of [0] a tad better. On 3/28/06, Matthew Moss wrote: > You could make a class "Once" to wrap your value. > Or something cheesy like this: > > def name > (x, @name = @name, nil)[0] > end >