まつもと ゆきひろです
In message "[ruby-list:3825] undef class [Re: require exit[Re: SyslogSendmail class]]"
on 97/08/26, 石塚圭樹 <keiju / bc.mbn.or.jp> writes:
|けいじゅ@日本ラショナルです.
|では, こういうことはできますか?
|module Bar
| ...
|end
|
|if VERSION < "1.1"
| undef Bar
| require "bar1.0.rb"
|end
|
|つまり, 定数Barのundefをおこなって, 再定義したいんですが...
できません.undefはメソッドのundefを行うものだからです.
# エラーくらい起こした方が良いのだろうか.