yarv-dev:1011
From: SASADA Koichi <ko1 atdot.net>
Date: Thu, 25 May 2006 16:12:18 +0900
Subject: [yarv-dev:1011] fixed> Re: open> cannot undef super's method
ささだです。 対応しました。 DATE Ken wrote: > こんばんは。伊達です。 > > 親クラスのメソッドを子クラスで undef できないみたいです(yarv-dev:709 関連?)。 > > $ cat test.rb > class Parent > def foo; end > end > class Child < Parent > def bar; end > undef foo, bar > end > c = Child.new > p c.methods.include?('foo') > p c.methods.include?('bar') > > $ ruby -v test.rb > ruby 1.8.4 (2005-12-24) [i686-linux] > false > false > > $ ruby19 -v test.rb > ruby 1.9.0 (2006-02-17) [i686-linux] > false > false > > $ ruby-yarv -v test.rb > ruby 2.0.0 (Base: Ruby 1.9.0 2006-02-14) [i686-linux] > YARVCore 0.4.0 Rev: 481 (2006-02-27) [opts: ] > true > false > -- // SASADA Koichi at atdot dot net -- ML: yarv-dev quickml.atdot.net 使い方: http://www.atdot.net/~ko1/quickml
999 2006-03-01 18:47 [ge6537 i.bekkoame.ne] open> cannot undef super's method -> 1011 2006-05-25 16:12 ┗[ko1 atdot.net ] fixed> Re: open> cannot undef super's method