Showing the differences between 2 hashes

R

Rick Tan

Hi,

Am looking for a module that supports showing graphically the
differences between 2 hashes in colour preferably. Does anybody know if
such a module exists?

Thanks.
 
B

brabuhr

Am looking for a module that supports showing graphically the
differences between 2 hashes in colour preferably. =A0Does anybody know i= f
such a module exists?

RSpec 1.3 had a --diff option:

$ irb
Expected hash contains keys that target hash does not: [:b]
Expected the key :a to be 3, but was 2
Expected the key :b to be 5, but was nil

Are you thinking about diffing as a feature in a program or as a
debugging tool? Depending on your data, you may get decent results by
marshaling the objects to yaml and using any standard diff tool.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top