From: oinkoink+unet@..._xx.com (Bret) Date: 2001-11-22T03:34:20+09:00 Subject: [ruby-talk:26054] Re: Methods as parameters to methods? In article <3BF476E0.71AFF2E6@stud.ntnu.no>, Kent Dahl wrote: >Bret wrote: >> Would someone please tell me how to make methods that have >> other methods as parameters? > >You could pass the methods as explicit objects. > a = "abc" > method = a.method(:upcase) > method.call #=> "ABC" Thanks. This does, however, require "preprocessing" the methods before using them and looks clumsy (I've become used to things being easier in Ruby than I expect). Maybe I've just been spoiled by Scheme on this particular issue. Regards, Bret Bret Jolly (Jou Lii Bair) To email, please remove the cow noises and underbar from my domain name. -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 80,000 Newsgroups - 16 Different Servers! =-----