class CSVDecision::Matchers::Matcher
Subclass and override {#matches?} to implement a custom Matcher
class.
Public Class Methods
new(_options = nil)
click to toggle source
# File lib/csv_decision/matchers.rb, line 193 def initialize(_options = nil); end
Public Instance Methods
ins?()
click to toggle source
Does this matcher apply to output cells?
@return [Boolean] Return true if this matcher applies to input cells,
false otherwise.
# File lib/csv_decision/matchers.rb, line 215 def ins? true end
matches?(cell)
click to toggle source
Determine if the input cell string is recognised by this Matcher
.
@param cell [String] Data
row cell. @return [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.
# File lib/csv_decision/matchers.rb, line 201 def matches?(cell); end
outs?()
click to toggle source
Does this matcher apply to output cells?
@return [Boolean] Return true if this matcher applies to output cells,
false otherwise.
# File lib/csv_decision/matchers.rb, line 207 def outs? false end