Sebastian Hungerecker wrote:
> Tito Ciuro wrote:
>> What I meant is that without the return, to me it looks like a one-way
>> method. If I see a 'return', I know there is something being returned.
> 
> As I said in my other message: every method returns something in ruby
> (though not necessarily something useful). There are no void methods
> in ruby (I assume, that's what you mean by one-way).

But I think it's still a good idea to use return in order to document 
that the method is MEANT to return something, and that it's not just an 
unintended side effect.
-- 
Posted via http://www.ruby-forum.com/.