Ruby Language Truthiness of a value can be used in if-else constructs


Example

You do not need to use double negation in if-else statements.

if 'hello'
    puts 'hey!'
else
    puts 'bye!'
end

The above code prints 'hey!' on the screen.