How is the conditional operator (? :) used in Ruby?
? :
For example, is this correct?
<% question = question.size > 20 ? question.ques
Easiest way:
param_a = 1 param_b = 2 result = param_a === param_b ? 'Same!' : 'Not same!'
since param_a is not equal to param_b then the result's value will be Not same!
param_a
param_b
result
Not same!