Class: Conditions::AnyCondition
- Inherits:
-
BaseCondition
- Object
- BaseCondition
- Conditions::AnyCondition
- Defined in:
- lib/conditions.rb
Overview
Checks if any values in the array are true
Instance Method Summary collapse
Methods inherited from BaseCondition
Constructor Details
This class inherits a constructor from Conditions::BaseCondition
Instance Method Details
#apply(value) ⇒ true, false
70 71 72 73 |
# File 'lib/conditions.rb', line 70 def apply(value) value = [value] unless value.is_a? Array value.any? end |