Hi,

Am Dienstag, 30. Jun 2009, 20:48:33 +0900 schrieb David A. Black:
> On Tue, 30 Jun 2009, Bertram Scharpf wrote:
>> Am Dienstag, 30. Jun 2009, 04:37:55 +0900 schrieb Mike Sassak:
>>> On Mon, Jun 29, 2009 at 2:44 PM, Wijnand Wiersma <wijnand / videre.net> 
>>> wrote:
>>>   def bar(v=nil)
>>>     v ? @bar = v : @bar
>>>   end
>>  def set_bar v = nil
>>    @bar ||= v
>>  end
>
> That only sets @bar if @bar hasn't be set (to a true value) already.

You're right. Sorry!

Bertram



-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de