Class: Solve::Solver::ConstraintRow
- Inherits:
-
Object
- Object
- Solve::Solver::ConstraintRow
- Defined in:
- lib/solve/solver/constraint_row.rb
Overview
Instance Attribute Summary collapse
-
#constraint ⇒ Object
readonly
Returns the value of attribute constraint.
-
#package ⇒ Object
readonly
Returns the value of attribute package.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(package, constraint, source) ⇒ ConstraintRow
constructor
A new instance of ConstraintRow.
Constructor Details
#initialize(package, constraint, source) ⇒ ConstraintRow
Returns a new instance of ConstraintRow.
10 11 12 13 14 |
# File 'lib/solve/solver/constraint_row.rb', line 10 def initialize(package, constraint, source) @package = package @constraint = constraint @source = source end |
Instance Attribute Details
#constraint ⇒ Object (readonly)
Returns the value of attribute constraint.
7 8 9 |
# File 'lib/solve/solver/constraint_row.rb', line 7 def constraint @constraint end |
#package ⇒ Object (readonly)
Returns the value of attribute package.
6 7 8 |
# File 'lib/solve/solver/constraint_row.rb', line 6 def package @package end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
8 9 10 |
# File 'lib/solve/solver/constraint_row.rb', line 8 def source @source end |