For the simpler methods it does seem to be a waste to put a return in
there however it should be remembered that the "if" also returns a value. So
def other(number)
if number == 1 then
puts "In the true condition"
"the number was 1"
else
puts "In the false condition"
"it was something else"
end
end
puts other(21)
outputs
> In the false condition
> it was something else
The implicit return here is for the whole of the if. Which can be quite
a pain to track down :(