Sha256: fab7f9f47d0afac84d6fff5630f4aba1985f1be70fd54d8d22b5a9e0a4ef35e9
Contents?: true
Size: 250 Bytes
Versions: 83
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
83 entries across 70 versions & 16 rubygems
Version | Path |
---|---|
faraday-1.0.1 | spec/support/fake_safe_buffer.rb |
tdiary-5.1.1 | vendor/bundle/ruby/2.7.0/gems/faraday-1.0.0/spec/support/fake_safe_buffer.rb |
faraday-1.0.0 | spec/support/fake_safe_buffer.rb |