by catwell · 5y ago · 0 comments
method = o.method(:my_method)
method.call(5)
# or method[5], or method.(5)
If you really want a "function" that you can call with parens: Kernel.define_method(:method_as_fun, &method)
(Definitely don't do that last bit in a real project...)1: https://yehudakatz.com/2010/02/21/ruby-is-not-a-callable-ori...