From: Lloyd Linklater Date: 2008-10-02T03:59:54+09:00 Subject: Re: Newbie question- Return method Sebastian Hungerecker wrote: > Lloyd Linklater wrote: >> >> def myMethod s >>   d = "foo" >>   s.upcase! >>   return d >> end >> >> p myMethod("hiya") > > Yes, but: > def myMethod s > d = "foo" > s.upcase! > d > end > p myMethod("hiya") > > Does the same without return. While that is true, I wanted to keep it to the point for this thread. I did refer to it when I said, > Lloyd Linklater wrote: >> >> You can use it to pick what you want returned if it is not the last >> thing in the method. -- Posted via http://www.ruby-forum.com/.