From: Devin Mullins Date: 2006-12-27T23:25:17+09:00 Subject: Re: Nuby: VisualuRuby, menutest.rb example with check boxes in submenus 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"