From: "NAKAMURA, Hiroshi" Date: 2003-08-11T23:41:51+09:00 Subject: [ruby-dev:21182] REXML introduces unexpected Object#__ne__ なひです。 lib/rexml/xpath_parser.rbを見ていたら、先頭にこんなのがありました。 # Ignore this class. It adds a __ne__ method, because Ruby doesn't seem to # understand object.send( "!=", foo ), whereas it *does* understand "<", "==", # and all of the other comparison methods. Stupid, and annoying, and not at # all POLS. class Object def __ne__(b) self != b end end なんかちょっとキレてそうですが、^^; Ignoreと言われても、なひは Objectを汚染するようなライブラリはあまり好きじゃありません。 って、あれ? もしかしてこのメソッド、使われてないのかな? # おかげでObject.newのsingleton classのinstance_methods(false)が # 空にならなくてハマりました。