Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail From: 7stud -- Newsgroups: comp.lang.ruby Subject: Re: Generating Functions in Ruby Date: Thu, 19 May 2011 13:00:23 -0500 Organization: Service de news de lacave.net Lines: 20 Message-ID: <41214f15ab9bccbeb6ceab7f7fb220b0@ruby-forum.com> References: <5e21af14-befb-406e-b1c3-6758fe1527ab@s14g2000vbi.googlegroups.com> <93jrqvFrf0U2@mid.individual.net> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1305830614 47111 65.111.164.187 (19 May 2011 18:43:34 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Thu, 19 May 2011 18:43:34 +0000 (UTC) In-Reply-To: <93jrqvFrf0U2@mid.individual.net> X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 383484 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: <41214f15ab9bccbeb6ceab7f7fb220b0@ruby-forum.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:4775 Robert K. wrote in post #999582: > > I am not sure I get your point. The method was intended to be used as a > top level method similarly to how he formulated his C macro sample. > > $ ruby19 < > def SUM_TEMPLATE(name, x, y) > > class < > end > > SUM_TEMPLATE("f",1,2) > > p f > > CODE > 3 > Oh, okay. But that isn't a class method. -- Posted via http://www.ruby-forum.com/.