Sha256: fab7f9f47d0afac84d6fff5630f4aba1985f1be70fd54d8d22b5a9e0a4ef35e9
Contents?: true
Size: 250 Bytes
Versions: 79
Compression:
Stored size: 250 Bytes
Contents
# frozen_string_literal: true # emulates ActiveSupport::SafeBuffer#gsub FakeSafeBuffer = Struct.new(:string) do def to_s self end def gsub(regex) string.gsub(regex) do match, = $&, '' =~ /a/ yield(match) end end end
Version data entries
79 entries across 66 versions & 15 rubygems