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/.