Class: CSVDecision::Matchers::Function
- Defined in:
- lib/csv_decision/matchers/function.rb
Overview
Match cell against a function call
* no arguments - e.g., := present?
* with arguments - e.g., :=lookup?(:table)
TODO: fully implement
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Function
constructor
A new instance of Function.
-
#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.
Constructor Details
#initialize(options = {}) ⇒ Function
Returns a new instance of Function.
14 15 16 |
# File 'lib/csv_decision/matchers/function.rb', line 14 def initialize( = {}) = end |
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.
20 21 22 |
# File 'lib/csv_decision/matchers/function.rb', line 20 def matches?(cell) CSVDecision::Function.matches?(cell) end |