how to write if in 1 line in ruby code example Example: ruby if statement one line if_condition ? if_statement : else_statement