--001485f5cef07650b3046d44391f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Jun 26, 2009 at 2:03 PM, Martin Hess <martinhess / me.com> wrote: > How do you pass a method reference and call it on a particular object? I > know I can pass it as a string and call eval, but I'm trying to avoid that > performance hit. > > You could use a proc/lambda, and pass it just like any other object: foo ambda do puts "word." end def test(bar) bar.call end test(foo) Alex --001485f5cef07650b3046d44391f--