Class: DataMaps::When::Nin
- Inherits:
-
Base
- Object
- Executable
- Base
- DataMaps::When::Nin
- Defined in:
- lib/data_maps/when/comparison.rb
Overview
Condition to check is not in
Instance Attribute Summary
Attributes inherited from Executable
Instance Method Summary collapse
-
#execute(data) ⇒ Object
Check if data is not part of option.
Methods inherited from Executable
#initialize, valid_collection?
Constructor Details
This class inherits a constructor from DataMaps::Executable
Instance Method Details
#execute(data) ⇒ Object
Check if data is not part of option
94 95 96 |
# File 'lib/data_maps/when/comparison.rb', line 94 def execute(data) !option.include?(data) end |