From: Gregory Marton Date: 2008-02-24T23:05:17+09:00 Subject: Re: passing method references in python & ruby Robert Dober wrote: > On Sun, Feb 24, 2008 at 2:55 PM, Arlen Cuss wrote: >> => [4, 7, 9] >> >> Personally, I like doing it this way. You could always try monkey-patching >> (ooh, buzzword) Symbol by adding Symbol#to_proc to do some method >> resolution. > Oh you might do this even very often if you are writing Ruby1.8/1.9 > agnostic libraries. > Cheers > Robert Could you both elaborate? I'm not sure what it would mean to "monkeypatch" this, or which differences with 1.9 will require it. Thanks already: this is a bit C-like, but nicer than wrapping a block around things. Grem -- Posted via http://www.ruby-forum.com/.