Sha256: ac7e9ce8e40129c307e747f046c4ebfd483ed195424ce9f98e99acc6ce660d32
Contents?: true
Size: 377 Bytes
Versions: 22
Compression:
Stored size: 377 Bytes
Contents
# 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
Version data entries
22 entries across 22 versions & 1 rubygems