On Oct 24, 6:31 pm, "S=F8ren Andersen" <soren.ander... / gmail.com> wrote:
> interface.set_action(:foo)
> interface.call_action =3D> foo called
>
> but, how do I handle it if the method is an instance method on some objec=
t?
> program =3D Program.new
> interface.set_action(:program.foo)?
> No variant of this works for me.


You should pass the target object to the interface as well, and then
do "my_obj.send(an_instance_method_foo)"