Class: CSVDecision::Matchers::Symbol

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

Overview

Match cell against a

* cell constant - e.g., := true, = nil
* symbolic expression - e.g., :column, > :column

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.



15
16
17
# File 'lib/csv_decision/matchers/symbol.rb', line 15

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