From: Robert Klemme Date: 2005-01-26T03:20:48+09:00 Subject: Re: Injecting methods from one class into another. "George Moschovitis" schrieb im Newsbeitrag news:1106671017.848252.287620@c13g2000cwb.googlegroups.com... > Can anyone give me an example, where this #bind method is usefull? I > mean, you can only bind a Method back to an object of the original > method's Class or a Subclass. But such an object allready has this > method, so whats the point? > Am I missing something here? Hm, maybe for caching: @cached = lengthy_process_that_returns_an_unbound_method() .... def treat(obj) @cached.bind(obj).call end Dunno whether that's more efficient than just remembering the symbol and invoking the method via send... Kind regards robert