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
Instance Method Summary collapse
-
#domain_range ⇒ Object
Returns the smallest range that contains the domains of all integer variables involved.
-
#to_fixnum_enum ⇒ Object
Returns the receiver.
Methods included from EnumMethods
Methods included from Gecode::FixnumEnum::FixnumEnumOperand
#disjoint_union, included, #intersection, #method_missing, #minus, #union
Methods included from Operand
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Gecode::FixnumEnum::FixnumEnumOperand
Instance Method Details
#domain_range ⇒ Object
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_enum ⇒ Object
Returns the receiver.
189 190 191 |
# File 'lib/gecoder/interface/enum_wrapper.rb', line 189 def to_fixnum_enum self end |