summaryrefslogtreecommitdiff
path: root/lib/csv/match_p.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csv/match_p.rb')
-rw-r--r--lib/csv/match_p.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/csv/match_p.rb b/lib/csv/match_p.rb
deleted file mode 100644
index 775559a3eb..0000000000
--- a/lib/csv/match_p.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-# This provides String#match? and Regexp#match? for Ruby 2.3.
-unless String.method_defined?(:match?)
- class CSV
- module MatchP
- refine String do
- def match?(pattern)
- self =~ pattern
- end
- end
-
- refine Regexp do
- def match?(string)
- self =~ string
- end
- end
- end
- end
-end