lib/csv_decision/matchers/range.rb in csv_decision-0.1.0 vs lib/csv_decision/matchers/range.rb in csv_decision-0.2.0
- old
+ new
@@ -11,12 +11,11 @@
# Match cells against Ruby-like range expressions or their negation -
# e.g., +0...10+ or +!a..z+.
class Range < Matcher
# Match a table data cell string against a Ruby-like range expression.
#
- # @param (see Matcher#matches?)
- # @return (see Matcher#matches?)
+ # (see Matcher#matches?)
def self.matches?(cell)
if (match = NUMERIC_RANGE.match(cell))
return range_proc(match: match, coerce: :to_numeric)
end
@@ -85,10 +84,9 @@
end
private_class_method :range_proc
# Ruby-like range expressions or their negation - e.g., +0...10+ or +!a..z+.
#
- # @param (see Matcher#matches?)
# @return (see Matcher#matches?)
def matches?(cell)
Range.matches?(cell)
end
end
\ No newline at end of file