Class: Differin::Renderers::Array
- Defined in:
- lib/differin/renderers/array.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Differin::Renderers::Base
Instance Method Details
#render ⇒ Object
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 |