Sha256: 7f024d54a6577bb2be8c3a0c2fed0ed55d86c4fbaeb7e7040ba1e7dffc0a00b9
Contents?: true
Size: 554 Bytes
Versions: 69
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true # re2 (https://github.com/mudge/re2) # Ruby bindings to RE2, a "fast, safe, thread-friendly alternative to # backtracking regular expression engines like those used in PCRE, Perl, and # Python". # # Copyright (c) 2010, Paul Mucur (https://mudge.name) # Released under the BSD Licence, please see LICENSE.txt module RE2 class Scanner include Enumerable def each if block_given? while matches = scan yield matches end else to_enum(:each) end end end end
Version data entries
69 entries across 69 versions & 1 rubygems