Class: DataMaps::When::Eq
- Inherits:
-
Base
- Object
- Executable
- Base
- DataMaps::When::Eq
- Defined in:
- lib/data_maps/when/comparison.rb
Overview
Condition to check equality
Instance Attribute Summary
Attributes inherited from Executable
Instance Method Summary collapse
-
#execute(data) ⇒ Object
Check if data equals 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 equals option
58 59 60 |
# File 'lib/data_maps/when/comparison.rb', line 58 def execute(data) data == option end |