From: Paul Jungwirth Date: 2009-03-20T20:37:48+09:00 Subject: Re: Passing a named function instead of a code block? Okay, now how about when you want to reference a method on an instance? For example: #!/usr/bin/env ruby class Adder def initialize(n) @n = n end def use(x) x + n end end a = Adder.new(5) print [1, 2, 3, 4].collect(&method(:a.use)) This doesn't work. It looks like : binds tighter than .. But :(a.use) doesn't work either. Any suggestions? -- Posted via http://www.ruby-forum.com/.