Class: PactBroker::UI::ViewDomain::MatrixLines
- Inherits:
-
Array
- Object
- Array
- PactBroker::UI::ViewDomain::MatrixLines
- Defined in:
- lib/pact_broker/ui/view_models/matrix_lines.rb
Instance Method Summary collapse
-
#initialize(rows, options = {}) ⇒ MatrixLines
constructor
A new instance of MatrixLines.
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, = {} lines = rows.collect do | row | PactBroker::UI::ViewDomain::MatrixLine.new(row, ) end super(lines.sort) end |