T
T. Onoma
Urrrr.....
class Q
end
class A
def x
print "X"
end
end
q = Q.new
meth = A.instance_methodx)
meth.bind(q)
q.x; puts
results in
`bind': bind argument must be an instance of A (TypeError)
If I can only bind the method to an object of the same class from which I took
it, then what's the point!? What am I missing?
T.
class Q
end
class A
def x
print "X"
end
end
q = Q.new
meth = A.instance_methodx)
meth.bind(q)
q.x; puts
results in
`bind': bind argument must be an instance of A (TypeError)
If I can only bind the method to an object of the same class from which I took
it, then what's the point!? What am I missing?
T.