I’m not far into learning Ruby (which is great fun) but I’m very confused about method returns.
The instructions seem to imply that using a return statement in a method should display something in the console (similar to how would puts) but it never does for me.
Even when I copy and paste the examples they don’t work as I imagine. i.e.
def double(n)
return n * 2
end
Do I just have the wrong idea or am I missing something?
Cheers in advance