Your IP : 3.145.65.133


Current Path : /opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/csv/
Upload File :
Current File : //opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/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

?>