From: Kent Dahl Date: 2001-11-22T03:54:23+09:00 Subject: [ruby-talk:26059] Re: Methods as parameters to methods? Bret wrote: > 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. Well, AFAIK, this is part of the reason that some articles said that in Ruby "methods aren't objects". Now, I'm not sure exactly what you want, but on the approach that requires the least preprocessing is to mearly pass in symbols, and do the processing on the inside, or using "send" directly. Ruby Method objects seem to comprise both an instance and the method. I.e. the way to pass methods if you want to delay the selection of the object, is to just work with symbols. -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.�k.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/