On Thu, Jul 17, 2003 at 09:49:30AM +0900, Paul wrote:
> How do I pass a ruby function as an argument to another ruby function so
> that it can be used as a callback?

b.method(:a) converts the method 'a' of object 'b' into a Method object,
which you can pass around and invoke using Method#call

  def meth1(str)
    puts str
  end

  def meth2(m)
    m.call("hello")
  end

  meth2(method(:meth1))

Regards,

Brian.