artonです。 On Thu, 5 Dec 2002 22:42:35 +0900 nobu.nakada / nifty.ne.jpさん wrote: > IDプロパティというのがWIN32OLE汎用のものならこんなとこで。 > > class WIN32OLE > def ==(other) > self.ID == other.ID > end > end > あぁ、なるほど。しかし、汎用ではないので(普通は、ItemとかValueというプ ロパティ名になります)、次のほうが良いと思います。 class WIN32OLE def ==(other) if WIN32OLE === other return _invoke(0,[],[]) == other.invoke(0,[],[]) end super(other) end end -- arton <artonx / yahoo.co.jp> __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/