From: Mark Dodwell Date: 2006-12-19T22:37:54+09:00 Subject: Re: compare two objects without take its ID in consideration > obj1.inspect.gsub(re, '') == obj2.inspect.gsub(re, '') Sorry should be 'sub', not 'gsub': obj1.inspect.sub(re, '') == obj2.inspect.sub(re, '') -- Posted via http://www.ruby-forum.com/.