class CartoCSSHelper::PairOfComparedImages
Attributes
description[RW]
left_file_location[R]
right_file_location[R]
Public Class Methods
new(left_image, right_image)
click to toggle source
# File lib/cartocss_helper/visualise_changes_diff_from_images.rb, line 22 def initialize(left_image, right_image) raise 'description mismatch' unless left_image.description == right_image.description @left_file_location = left_image.file_location @right_file_location = right_image.file_location @description = left_image.description end
Public Instance Methods
merge_description_from_next_image(image)
click to toggle source
# File lib/cartocss_helper/visualise_changes_diff_from_images.rb, line 29 def merge_description_from_next_image(image) @description << ', ' << image.description end