From: "Mauricio Fernández" Date: 2003-11-16T04:08:10+09:00 Subject: Re: def On Sun, Nov 16, 2003 at 03:02:41AM +0900, T. Onoma wrote: > i ask b/c i was thinking it would be good if def actually returned a value, i.e. the symbol of the method being defined. > > def foo # => :foo > ... > end > > why? > > private def foo > ... > end heh http://www.rubygarden.org/article.php?sid=294 -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Not only Guinness - Linux is good for you, too. -- Banzai on IRC