Sha256: 04ab28b264a1c8ea90ad594a4acf36a59893e98f3d171f5f104abd815b0bc3c6

Contents?: true

Size: 537 Bytes

Versions: 3

Compression:

Stored size: 537 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
    # Recognise numeric comparison expressions - e.g., +> 100+ or +!= 0+
    class Numeric < Matcher
      # @param (see Matchers::Matcher#matches?)
      # @return (see Matchers::Matcher#matches?)
      def matches?(cell)
        CSVDecision::Numeric.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/numeric.rb
csv_decision-0.0.5 lib/csv_decision/matchers/numeric.rb
csv_decision-0.0.4 lib/csv_decision/matchers/numeric.rb