From: Gavin Sinclair Date: 2004-09-29T13:30:57+09:00 Subject: Re: DRY ruby idiom Steve Tuckner wrote: > a = "default" > a = foo.value if foo.value > > I just wanted to see if there was a simple way to avoid the double > foo.value that I was missing. Thanks for all your responses. Ah, well _that's_ easy: a = foo.value || "default" Gavin