class Gecode::BlockConstraint
A constraint that can be specified by providing a block containing the post method.
Public Instance Methods
post()
click to toggle source
# File doc/tmp/rdoc_dev/gecoder/interface/constraints.rb, line 245 def post @proc.call end
Public Class Methods
new(model, params, &block)
click to toggle source
Calls superclass method
Gecode::Constraint.new
# File doc/tmp/rdoc_dev/gecoder/interface/constraints.rb, line 240 def initialize(model, params, &block) super(model, params) @proc = block end