Difftastic Ruby
A Ruby interface and wrapper for the wonderful Difftastic CLI tool.
First create a differ with your config.
MY_DIFFER = Difftastic::Differ.new(
background: :dark,
color: :always,
left_label: "Expected",
right_label: "Actual"
)
Diff Objects
MY_DIFFER.diff_objects(a, b)
Diff Ruby
MY_DIFFER.diff_ruby(a, b)