チケット #2965 が更新されました。 (by Sora Harakami)


ソラです。
1.9.2devと1.9.1で例外メッセージが異なるようです。参考にも。
--
% ruby -ve '
class String
  def ===(other)
    self == other
  end
end
case ""
when ""
end'          
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.2.0]
-e:3: warning: method redefined; discarding old ===
-e:7:in `<main>': method `===' called on terminated object (0x00000101028870) (NotImplementedError)
---
% ruby192 -ve ’
class String
  def ===(other)
    self == other
  end
end
case ""
when ""
end'
ruby 1.9.2dev (2010-03-15 trunk 26939) [x86_64-darwin10.2.0]
-e:3: warning: method redefined; discarding old ===
-e:7:in `<main>': method `===' called on hidden T_STRING object (0x0000010085c4c8 flags=0x500805 klass=0x0) (NotImplementedError)
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2965

----------------------------------------
http://redmine.ruby-lang.org