Inspect for overriden method


#1

override e$B$5$l$?%a%=%C%I$r8F$S=P$9I,MW$,$"$C$F!"e(Bunbound
method e$B$re(B bind e$B$7$F8F$S=P$9$H$$$&$N$r$d$C$F$$F$=$l$O$H$/$Ke(B
e$BLdBj$J$/F0$$$?$N$G$9$,!"e(Binspect e$B$9$k$H<B:]$K8F$S=P$9%a%=%C%Ie(B
e$B$,B8:
$9$k%/%i%9$,=P$F$3$J$$$3$H$K5$$,$D$-$^$7$?!#e(B

% ./ruby -ve ’
class A
def m
p :A
end
end
class B < A
def m
p :B
end
end
o = B.new
m = A.instance_method(:m).bind(o)
p m
m.call’
ruby 1.9.0 (2006-05-11) [i686-linux]
#<Method: B#m>
:A

e$B$3$3$G!"e(Bm e$B$,<B:]$K8F$S=P$9%a%=%C%I$Oe(B A
e$B$GDj5A$5$l$F$$$k$b$Ne(B
e$B$J$o$1$G!"e(B#<Method: B(A)#m>
e$B$HI=<($5$l$F$[$7$$$H;W$&$N$G$9$,!"e(B
e$B$I$&$G$7$g$&e(B?