Sha256: 3501ec889375b0c87472f16a93706eed0ac1233e6fe89958f4377743473cd918

Contents?: true

Size: 243 Bytes

Versions: 36

Compression:

Stored size: 243 Bytes

Contents

# frozen_string_literal: true

require "stringio"

class FakeIO
  def initialize(content)
    @io = StringIO.new(content)
  end

  def string
    @io.string
  end

  def read(*args)
    @io.read(*args)
  end

  def size
    @io.size
  end
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/support/fakeio.rb
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/support/fakeio.rb
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/support/fakeio.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/http-5.2.0/spec/support/fakeio.rb
direct7-0.0.13 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/support/fakeio.rb
direct7-0.0.12 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/support/fakeio.rb
http-5.2.0 spec/support/fakeio.rb
direct7-0.0.11 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/support/fakeio.rb
http-5.1.1 spec/support/fakeio.rb
http-5.1.0 spec/support/fakeio.rb
http-5.0.4 spec/support/fakeio.rb
http-5.0.3 spec/support/fakeio.rb
http-5.0.2 spec/support/fakeio.rb
http-5.0.1 spec/support/fakeio.rb
http-5.0.0 spec/support/fakeio.rb
http-4.4.1 spec/support/fakeio.rb
http-4.4.0 spec/support/fakeio.rb
http-5.0.0.pre3 spec/support/fakeio.rb
http-5.0.0.pre2 spec/support/fakeio.rb
http-4.3.0 spec/support/fakeio.rb