Class: DataMaps::When::Lt

Inherits:
Base show all
Defined in:
lib/data_maps/when/comparison.rb

Overview

Condition to check for lower than

Since:

  • 0.0.1

Instance Attribute Summary

Attributes inherited from Executable

#@option, #option

Instance Method Summary collapse

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 greater than the option

Parameters:

  • data (mixed)

Since:

  • 0.0.1



34
35
36
# File 'lib/data_maps/when/comparison.rb', line 34

def execute(data)
  data < option
end