Class: Simulacrum::Pdiff

Inherits:
Diff
  • Object
show all
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

#compareObject



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