e$B=uED$G$9!#e(B
[ruby-core:30160] e$B$N7o$rD4$Y$F$$$F5$$E$$$?$N$G$9$,!"e(B
e$B<!$N%9%/%j%W%H$,e(B RuntimeError
e$B$K$J$k$N$O!"0U?^$7$?F0:n$J$N$G$7$g$&$+!)e(B
class Bar
end
class Foo
def method_missing(method, *arg)
if method != :foo
raise “unknown method #{method}”
end
end
end
puts Bar.new
puts Foo.new #=> `method_missing’: unknown method to_ary (RuntimeError)
WIN32OLE e$B$O!"e(Bmethod_missing
e$B$r:FDj5A$7$F$$$F!"e(BWIN32OLE#to_ary
e$B$,Dj5A$5$l$F$$$J$$$?$a!"e(B[ruby-core:30160]
e$B$N;v>]$,5/$3$C$F$$$^$9!#e(B
ruby 1.8.7 e$B$G$O5/$3$i$J$$$h$&$G$9!#e(B
e$B=uEDe(B