Module: Gecode::Set::Util

Defined in:
lib/gecoder/interface/constraints/set_var_constraints.rb

Overview

Utility methods for sets.

Class Method Summary collapse

Class Method Details

.decode_options(options) ⇒ Object



222
223
224
225
226
227
228
229
230
231
232
233
# File 'lib/gecoder/interface/constraints/set_var_constraints.rb', line 222

def decode_options(options)
  if options.has_key? :strength
    raise ArgumentError, 'Set constraints do not support the strength ' +
      'option.'
  end
  if options.has_key? :kind
    raise ArgumentError, 'Set constraints do not support the kind ' +
      'option.'
  end
  
  Gecode::Util.decode_options(options)
end