Sha256: 6cde27286cc9f249569292e993fcadbb6b679ac2dc54fc6a135c7d5a093d7a17

Contents?: true

Size: 156 Bytes

Versions: 7

Compression:

Stored size: 156 Bytes

Contents

module Polyfill
  module V2_4
    module Regexp
      def match?(string, position = 0)
        !!(string[position..-1] =~ self)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
polyfill-1.9.0 lib/polyfill/v2_4/regexp.rb
polyfill-1.8.0 lib/polyfill/v2_4/regexp.rb
polyfill-1.7.0 lib/polyfill/v2_4/regexp.rb
polyfill-0.10.0 lib/polyfill/v2_4/regexp.rb
polyfill-0.9.0 lib/polyfill/v2_4/regexp.rb
polyfill-0.8.0 lib/polyfill/v2_4/regexp.rb
polyfill-0.7.0 lib/polyfill/v2_4/regexp.rb