Class: Simulacrum::Pdiff
- Includes:
- ChunkyPNG::Color
- Defined in:
- lib/simulacrum/diff/pdiff.rb
Instance Attribute Summary
Attributes inherited from Diff
#a_path, #b_path, #delta, #image
Instance Method Summary collapse
Methods inherited from Diff
#initialize, #percent_change, #save
Constructor Details
This class inherits a constructor from Simulacrum::Diff
Instance Method Details
#compare ⇒ Object
8 9 10 11 |
# File 'lib/simulacrum/diff/pdiff.rb', line 8 def compare a_image = ChunkyPNG::Image.from_file(@a_path) b_image = ChunkyPNG::Image.from_file(@b_path) end |