Class: PactBroker::UI::ViewDomain::MatrixLines

Inherits:
Array
  • Object
show all
Defined in:
lib/pact_broker/ui/view_models/matrix_lines.rb

Instance Method Summary collapse

Constructor Details

#initialize(rows, options = {}) ⇒ MatrixLines

Returns a new instance of MatrixLines.



8
9
10
11
12
13
# File 'lib/pact_broker/ui/view_models/matrix_lines.rb', line 8

def initialize rows, options = {}
  lines = rows.collect do | row |
    PactBroker::UI::ViewDomain::MatrixLine.new(row, options)
  end
  super(lines.sort)
end