Class: Gecode::BoolEnum::Extensional::RegexpConstraint

Inherits:
Constraint
  • Object
show all
Defined in:
lib/gecoder/interface/constraints/bool_enum/extensional.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Constraint

#initialize

Constructor Details

This class inherits a constructor from Gecode::Constraint

Instance Method Details

#postObject



99
100
101
102
103
# File 'lib/gecoder/interface/constraints/bool_enum/extensional.rb', line 99

def post
  lhs, regexp = @params.values_at(:lhs, :regexp)
  Gecode::Raw::extensional(@model.active_space, 
    lhs.to_bool_enum.bind_array, regexp, *propagation_options)
end