From: Mark Dodwell Date: 2006-12-19T22:36:50+09:00 Subject: Re: compare two objects without take its ID in consideration It's not particularly nice but you could just do: re = /:[^\s]*/ obj1.inspect.gsub(re, '') == obj2.inspect.gsub(re, '') -- Posted via http://www.ruby-forum.com/.