how does a ternary operator work ruby code example Example: ruby ternary operator condition ? true : false