Sha256: 47dc8a5a268d59067411c20350b289c1bfc0f94357b49ad9478e3a8b697bd7ea
Contents?: true
Size: 578 Bytes
Versions: 34
Compression:
Stored size: 578 Bytes
Contents
## # This file provides compatibility monkeypatches to standard library classes # Implementation taken from MIT-licensed https://github.com/marcandre/backports # # https://github.com/marcandre/backports/blob/master/lib/backports/2.4.0/regexp/match.rb unless Regexp.method_defined? :match? class Regexp def match?(*args) !match(*args).nil? end end end # https://github.com/marcandre/backports/blob/master/lib/backports/2.4.0/string/match.rb unless String.method_defined? :match? class String def match?(*args) !match(*args).nil? end end end
Version data entries
34 entries across 34 versions & 1 rubygems