From: Dirk Meijer Date: 2006-01-10T00:00:06+09:00 Subject: Re: use of "return" ------=_Part_57785_30045326.1136818746318 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi, 'return' is used to return a value, and end the method processing. at the end of a method, 'return' is indeed not needed, and simply that valu= e will suffice, though i think a return looks nicer ;-) a good example where a return is needed, is this: def method(arg) if arg.class=3D=3DString return "invalid argument" end #rest of processing end this looks a lot nicer than placing your entire method in if/else code. greetings, Dirk. ------=_Part_57785_30045326.1136818746318--