How is the conditional operator (? :) used in Ruby?
? :
For example, is this correct?
<% question = question.size > 20 ? question.ques
The code condition ? statement_A : statement_B is equivalent to
condition ? statement_A : statement_B
if condition == true statement_A else statement_B end