From: Josh Cheek Date: 2011-08-28T20:41:54+09:00 Subject: Re: Help me understand this code --f46d0434bf86bda16004ab8f4315 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Aug 28, 2011 at 3:08 AM, Chris Root wrote: > Can anyone explain the syntax for the following code? It worked in rails > 3.1/1.9.2 but fails to work in 2.3.4/1.8.7. It's defined in a model if > it pertains. Many thanks. > > digital? ? :digital : :real > > -- > Posted via http://www.ruby-forum.com/. > > That's a ternary operator, it works like Stefano said. It isn't broken, whatever code was using it must be broken. --f46d0434bf86bda16004ab8f4315--