control_flow/unless_else_parens.rb
tests/_examples/control_flow/unless_else_parens.rb in the metorex repository.
x = 10
unless x > 20
puts "not big"
else
puts "big"
end
unless false
puts "truthy path"
else
puts "falsy path"
end
Output:
not big
truthy path