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