Easiest Way to Display a Short If/Then/Else Statement

Ruby has many styles of handling conditional statements. You can use big, indented blocks of code if your program has complex statements. However, if you can say it all on one line, this often saves you time, and saves the time of people who may be reading your code later. It’s time to use the Ternary Operator.

Continue reading “Easiest Way to Display a Short If/Then/Else Statement”

Easiest Way to Display a Short If/Then/Else Statement