Sha256: 1f617572a558f33f1279ace7da53a6e71867f254ab56fa96c043746f63af5777
Contents?: true
Size: 432 Bytes
Versions: 3
Compression:
Stored size: 432 Bytes
Contents
module Polyfill module V2_4 module String module Instance module MatchQ module Method def match?(pattern, position = 0) !!(self[position..-1] =~ pattern) end end refine ::String 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/string/instance/match_q.rb |
polyfill-0.5.0 | lib/polyfill/v2_4/string/instance/match_q.rb |
polyfill-0.4.0 | lib/polyfill/v2_4/string/instance/match_q.rb |