ParentFull threadjewel·Ruby's if statements are actually expressions, they behave the same as the ternary operator : ? foo = if bar 1 else 2 endView on HN