lib/csv_decision/matchers/range.rb in csv_decision-0.0.2 vs lib/csv_decision/matchers/range.rb in csv_decision-0.0.3
- old
+ new
@@ -5,11 +5,11 @@
# See LICENSE and README.md for details.
module CSVDecision
# Methods to assign a matcher to data cells
module Matchers
# Match cell against a Ruby-like range
- class Range
+ class Range < Matcher
# Range types are .. or ...
TYPE = '(\.\.\.|\.\.)'
def self.range_re(value)
Matchers.regexp(
@@ -66,11 +66,8 @@
return Range.proc(match: match)
end
false
end
-
- # This matcher does not need access to the options hash
- def initialize(_options = nil); end
end
end
end
\ No newline at end of file