PHP 8.2.31
Preview: match_p.rb Size: 377 B
//proc/thread-self/root/opt/alt/ruby26/lib64/ruby/2.6.0/csv/match_p.rb

# 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

Directory Contents

Dirs: 1 × Files: 8

Name Size Perms Modified Actions
core_ext DIR
- drwxr-xr-x 2024-03-03 22:47:32
Edit Download
381 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download
2.08 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
377 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download
28.94 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
11.14 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
12.72 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
107 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download
4.13 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).