Sha256: 4e0b5035be1746a270fc9432b473bf7a9edb6f5c15564b8fad8bf60e5f2b7a14
Contents?: true
Size: 430 Bytes
Versions: 3
Compression:
Stored size: 430 Bytes
Contents
module Polyfill module V2_4 module Regexp module Instance module MatchQ module Method def match?(string, position = 0) !!(string[position..-1] =~ self) end end refine ::Regexp do include Method end def self.included(base) base.include Method end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polyfill-0.6.0 | lib/polyfill/v2_4/regexp/instance/match_q.rb |
polyfill-0.5.0 | lib/polyfill/v2_4/regexp/instance/match_q.rb |
polyfill-0.4.0 | lib/polyfill/v2_4/regexp/instance/match_q.rb |