class CartoCSSHelper::ImageForComparison
Attributes
Public Class Methods
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
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