class Diffux::SnapshotComparisonImage::Before
This subclass of `SnapshotComparisonImage` knows how to draw the representation of the “before” image.
Public Instance Methods
render_changed_row(y, row)
click to toggle source
@param y [Integer] @param row [Diff::LCS:ContextChange]
# File lib/diffux_ci/snapshot_comparison_image/before.rb, line 8 def render_changed_row(y, row) render_deleted_row(y, row) end
render_deleted_row(y, row)
click to toggle source
@param y [Integer] @param row [Diff::LCS:ContextChange]
# File lib/diffux_ci/snapshot_comparison_image/before.rb, line 14 def render_deleted_row(y, row) row.old_element.each_with_index do |pixel_before, x| render_pixel(x, y, pixel_before) end end