Method: Gecode::Int::IntConstraintReceiver#initialize
- Defined in:
- lib/gecoder/interface/constraints/int_var_constraints.rb
#initialize(model, params) ⇒ IntConstraintReceiver
Raises TypeError unless the left hand side is an int operand.
216 217 218 219 220 221 222 |
# File 'lib/gecoder/interface/constraints/int_var_constraints.rb', line 216 def initialize(model, params) #:nodoc: super unless params[:lhs].respond_to? :to_int_var raise TypeError, 'Must have int operand as left hand side.' end end |