Module: Gecode::FixnumEnumMethods

Includes:
EnumMethods, Gecode::FixnumEnum::FixnumEnumOperand
Defined in:
lib/gecoder/interface/enum_wrapper.rb

Overview

A module containing the methods needed by enumerations containing fixnums. Requires that it’s included in an enumerable.

Instance Attribute Summary

Attributes included from EnumMethods

#model

Instance Method Summary collapse

Methods included from EnumMethods

#active_space

Methods included from Gecode::FixnumEnum::FixnumEnumOperand

#disjoint_union, included, #intersection, #method_missing, #minus, #union

Methods included from Operand

#model, #must, #must_not

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Gecode::FixnumEnum::FixnumEnumOperand

Instance Method Details

#domain_rangeObject

Returns the smallest range that contains the domains of all integer variables involved.



195
196
197
# File 'lib/gecoder/interface/enum_wrapper.rb', line 195

def domain_range
  min..max
end

#to_fixnum_enumObject

Returns the receiver.



189
190
191
# File 'lib/gecoder/interface/enum_wrapper.rb', line 189

def to_fixnum_enum
  self
end