Sha256: 224cd12e110e599a79dbeba075ae29c85e6c2d19602c140980ad3deb0ba62212

Contents?: true

Size: 702 Bytes

Versions: 3

Compression:

Stored size: 702 Bytes

Contents

# frozen_string_literal: true

# CSV Decision: CSV based Ruby decision tables.
# Created December 2017 by Brett Vickers
# See LICENSE and README.md for details.
module CSVDecision
  # Methods to assign a matcher to data cells
  class Matchers
    # Match cell against a function call
    #   * no arguments - e.g., := present?
    #   * with arguments - e.g., :=lookup?(:table)
    # TODO: fully implement
    class Function < Matcher
      def initialize(options = {})
        @options = options
      end

      # @param (see Matchers::Matcher#matches?)
      # @return (see Matchers::Matcher#matches?)
      def matches?(cell)
        CSVDecision::Function.matches?(cell)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
csv_decision-0.0.6 lib/csv_decision/matchers/function.rb
csv_decision-0.0.5 lib/csv_decision/matchers/function.rb
csv_decision-0.0.4 lib/csv_decision/matchers/function.rb