diff options
author | Mau Magnaguagno <maumagnaguagno@gmail.com> | 2022-06-18 10:32:35 -0300 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-05-25 01:44:17 +0900 |
commit | a0709d0aae9609688f13e16bbae7ef84da78b24b (patch) | |
tree | 4087bf99139becd61249c9ea0b0407c54979e783 /lib/csv/match_p.rb | |
parent | 55a900d9cc598e0670107149d7bb87ad8e006239 (diff) |
[ruby/csv] Remove no longer required refinements
(https://github.com/ruby/csv/pull/250)
Since PR #159, the minimum Ruby version is 2.5.0, a version which no
longer requires refinements for String#delete_suffix?, String#match? and
Regexp#match?.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7851
Diffstat (limited to 'lib/csv/match_p.rb')
-rw-r--r-- | lib/csv/match_p.rb | 20 |
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 |