how to write a ternary operator in ruby code example Example: ruby ternary operator condition ? true : false