From: Jason Mayer Date: 2006-12-27T23:29:42+09:00 Subject: Re: Nuby: VisualuRuby, menutest.rb example with check boxes in submenus ------=_Part_83704_913943.1167229780431 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 12/27/06, Devin Mullins wrote: > > Jason Mayer wrote: > > what does '= ! @variable' do anyway? I've never seen an example that > did > > that. > = does what you think it does. ! is the unary 'not' operator. !false == > true and !true == false. > > > Second question: > > How can what I added be turned into a one-liner? > @label.caption = @checking.checked? ? "checked" : "unchecked" > > Great, thanks for the quick response. ------=_Part_83704_913943.1167229780431--