Ternary Operator « Language Basics « Ruby






1.The Ternary Operator: ? :
2.Consider an alternative of Ternary Operator
3.Using the Ternary Operator
4.The ternary operator can be used to build expressions on a single line