[Bug #3445] 1.9.2-preview3 $B$G(B Object#extend $B$9$k$H(B public_methods(false) $B$+$i%a%=%C

Bug #3445: 1.9.2-preview3 e$B$Ge(B Object#extend e$B$9$k$He(B
public_methods(false) e$B$+$i%a%=%C%IL>$,>C$($ke(B
http://redmine.ruby-lang.org/issues/show/3445

e$B5/I<<Te(B: Yusuke E.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: core, Target version: 1.9.2
ruby -v: 1.9.2-preview3

[ruby-dev:41553] e$B$,e(B redmine ML
e$BO"7H$NITD4$G%A%1%C%H2=$5$l$J$+$C$?e(B
e$B$h$&$J$N$G!"<jF0$GEPO?$7$^$9!#e(B


e$B6a1J$H?=$7$^$9!#e(B

1.9.2-preview3 e$B$$h$Se(B trunk e$B$K$F!“0J2<$N$h$&$Ke(B Object#extend
e$B$9$k$He(B
public_methods(false)
e$B$GJV$9%a%=%C%I%j%9%H$+$i85!9$”$C$?%a%=%C%I$,>C$($^$9!#e(B
e$B$3$l$O;EMMJQ99$G$7$g$&$+!)e(B 1.9.1 e$B$
$h$Se(B 1.9.2-preview1
e$B$G$Oe(B
e$B$I$A$i$b85$N%a%=%C%Ie(B + extend e$B$7$?%b%8%e!<%k$Ne(B public
e$B%a%=%C%I$rJV$7$F$$$^$7$?!#e(B
NEWS
e$B%U%!%$%k$O$6$C$HL$rDL$7$^$7$?$,3:Ev$7$=$&$J$H$3$m$O8+$D$1$i$l$^$;$s$G$7$?!#e(B

module M
def m1; end
def m2; end
module_function :m2
end

class A
def a; end
end

obj = A.new
p obj.public_methods(false) # => [:a]

obj.extend(M)
p obj.public_methods(false) # => trunk, 1.9.2-preview3 => []
# => 1.9.1, 1.9.2-preview1 => [:m1, :a]


Chikanaga Tomoyuki
Nippon Control System Corp.