How can I get a reference to a method?
You want Object#method: ———————————————————- Object#method obj.method(sym) => method ———————————————————————— Looks up the named method as a receiver in obj, returning a Method object (or raising NameError). The Method object acts as a closure in obj’s object instance, so instance variables and the value of self remain available. class Demo def initialize(n) @iv = n end … Read more