lib/csv_decision/matchers/pattern.rb in csv_decision-0.0.9 vs lib/csv_decision/matchers/pattern.rb in csv_decision-0.1.0
- old
+ new
@@ -72,11 +72,10 @@
return false unless comparator
# No need for a regular expression if we have simple string inequality
pattern = comparator == '!=' ? value : Matchers.regexp(value)
- Proc.with(type: :proc,
- function: PATTERN_LAMBDAS[comparator].curry[pattern].freeze)
+ Proc.new(type: :proc, function: PATTERN_LAMBDAS[comparator].curry[pattern].freeze)
end
# @param options [Hash{Symbol=>Object}] Used to determine the value of regexp_implicit:.
def initialize(options = {})
# By default regexp's must have an explicit comparator
\ No newline at end of file