Class: Constraint::AndConstraint
- Inherits:
-
Array
- Object
- Array
- Constraint::AndConstraint
- Defined in:
- lib/constraint.rb
Overview
All constraints must succeed.
Instance Method Summary collapse
Instance Method Details
#evaluate(invoker, object) ⇒ Object
49 50 51 52 53 54 |
# File 'lib/constraint.rb', line 49 def evaluate(invoker, object) for a in self object = a.evaluate(invoker, object) end object end |