if can be used to build expressions, so you can use it for conditional assignments.
variable =
if condition
if_value
else
else_value
Even using operators is basically calling methods. So 3 * 2 + 1 can be [...]
Archives for the Date March 12th, 2008
Programming Ruby: Chapter 7
Wednesday, 12 March 2008
Seven Languages in Seven Weeks
I Am a Strange Loop
A Short History of Nearly Everything