3 ms·
Ruby's if statements are actually expressions, they behave the same as the ternary operator : ? foo = if bar 1 else 2 end
by jewel 3y ago
Ruby's if statements are actually expressions, they behave the same as the ternary operator : ?
foo = if bar
1
else
2
end