An open API service indexing awesome lists of open source software.

https://github.com/ftomassetti/rubydiff

Find and list differences betweem Ruby objects
https://github.com/ftomassetti/rubydiff

Last synced: 8 months ago
JSON representation

Find and list differences betweem Ruby objects

Awesome Lists containing this project

README

          

rubydiff
========

Find and list differences betweem Ruby objects

== Example

diffs = RubyDiff::Differ.diff({1=>'a',2=>'b',3=>'c'},{1=>'a',2=>'b',3=>'d'})

diff.to_s produces:

main diffs: [], sub diffs: {
"key '3'\"=>main diffs: [[not_the_same] c vs d], sub diffs: {}
}