Class: Differin::Renderers::Array

Inherits:
Base
  • Object
show all
Defined in:
lib/differin/renderers/array.rb

Instance Attribute Summary

Attributes inherited from Base

#diff, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Differin::Renderers::Base

Instance Method Details

#renderObject



5
6
7
8
9
10
11
12
13
# File 'lib/differin/renderers/array.rb', line 5

def render
  diff.result.map do |row|
    [
      row[:status],
      [row[:lines].first, row[:values].first],
      [row[:lines].last, row[:values].last]
    ]
  end
end