class CartoCSSHelper::ImageForComparison

Attributes

description[R]
file_location[R]

Public Class Methods

new(file_location, description) click to toggle source
# File lib/cartocss_helper/visualise_changes_diff_from_images.rb, line 8
def initialize(file_location, description)
  @file_location = file_location
  @description = description
end

Public Instance Methods

identical(another_image) click to toggle source
# File lib/cartocss_helper/visualise_changes_diff_from_images.rb, line 13
def identical(another_image)
  # Returns true if the contents of a file A and a file B are identical.
  return FileUtils.compare_file(file_location, another_image.file_location)
end