ruby shorthand if else on two lines code example Example: ruby shorthand if today == ChristmasEve ? (puts "Santa's On His Way!") : (puts "Snow")