Hi,

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

Sorry, but I cannot leave this as it is (untested):

  def set_bar v = nil
    @bar ||= v
  end

Bertram


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