Class: CSVDecision::Matchers::Numeric

Inherits:
Matcher
  • Object
show all
Defined in:
lib/csv_decision/matchers/numeric.rb

Overview

Recognise numeric comparison expressions - e.g., > 100 or != 0

Instance Method Summary collapse

Methods inherited from Matcher

#initialize

Constructor Details

This class inherits a constructor from CSVDecision::Matchers::Matcher

Instance Method Details

#matches?(cell) ⇒ false, CSVDecision::Proc

Returns false if this cell is not a match; otherwise returns the CSVDecision::Proc object indicating if this is a constant or some type of function.

Parameters:

  • cell (String)

    Data row cell.

Returns:

  • (false, CSVDecision::Proc)

    Returns false if this cell is not a match; otherwise returns the CSVDecision::Proc object indicating if this is a constant or some type of function.



13
14
15
# File 'lib/csv_decision/matchers/numeric.rb', line 13

def matches?(cell)
  CSVDecision::Numeric.matches?(cell)
end