Group multiple expressions into a single expression : Code statement « Language Basics « Ruby






Group multiple expressions into a single expression


age = 24

puts "You're NOT a teenager" unless age > 12 && age < 20

 

Related examples in the same category

1.You don't need any end-of-line marker at all in Ruby.