Module: CSVDecision::Function

Defined in:
lib/csv_decision/function.rb

Overview

Methods to recognise various function expressions TODO: fully implement

Constant Summary

FUNCTION_RE =
Matchers.regexp(FUNCTION_CALL)

Class Method Summary collapse

Class Method Details

.matches?(cell) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
25
26
27
28
29
30
# File 'lib/csv_decision/function.rb', line 22

def self.matches?(cell)
  match = FUNCTION_RE.match(cell)
  return false unless match

  # operator = match['operator']&.gsub(/\s+/, '')
  # name = match['name'].to_sym
  # args = match['args'].strip
  # negate = match['negate'] == Matchers::NEGATE
end