Method: Conditions::InCondition#apply
- Defined in:
- lib/conditions.rb
#apply(value) ⇒ true, false
36 37 38 39 |
# File 'lib/conditions.rb', line 36 def apply(value) value = [value] unless value.is_a? Array (value & @predicate).any? end |