[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Nuby: VisualuRuby, menutest.rb example with check boxes in submenus

Devin Mullins

12/27/2006 2:25:00 PM

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"