Class: CSVDecision::Matchers::Symbol
- 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
-
#matches?(cell) ⇒ false, CSVDecision::Proc
Returns false if this cell is not a match; otherwise returns the
CSVDecision::Procobject indicating if this is a constant or some type of function.
Methods inherited from Matcher
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.
15 16 17 |
# File 'lib/csv_decision/matchers/symbol.rb', line 15 def matches?(cell) CSVDecision::Symbol.matches?(cell) end |