Class: Solve::Solver::ConstraintRow

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/solve/solver/constraint_row.rb

Overview

Author:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dependency, source) ⇒ ConstraintRow

Returns a new instance of ConstraintRow.

Parameters:



15
16
17
18
# File 'lib/solve/solver/constraint_row.rb', line 15

def initialize(dependency, source)
  @dependency = dependency
  @source = source
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



8
9
10
# File 'lib/solve/solver/constraint_row.rb', line 8

def source
  @source
end