Class: Recheck::Optimist::ConflictConstraint
- Inherits:
-
Constraint
- Object
- Constraint
- Recheck::Optimist::ConflictConstraint
- Defined in:
- lib/recheck/vendor/optimist.rb
Overview
A Conflict constraint. Useful when Option A cannot be used with Option B.
Instance Method Summary collapse
Methods inherited from Constraint
Constructor Details
This class inherits a constructor from Recheck::Optimist::Constraint
Instance Method Details
#error_condition(overlap_size) ⇒ Object
78 79 80 |
# File 'lib/recheck/vendor/optimist.rb', line 78 def error_condition(overlap_size) (overlap_size != 0) && (overlap_size != 1) end |
#error_message(longargs) ⇒ Object
82 83 84 |
# File 'lib/recheck/vendor/optimist.rb', line 82 def (longargs) "only one of #{longargs.join(", ")} can be given" end |