Sha256: 572345116274cb7b2189569b2f31a7edfa6f6ad7621a9fdfd3c94649245346ff

Contents?: true

Size: 515 Bytes

Versions: 12

Compression:

Stored size: 515 Bytes

Contents

module FakeFS
  # FakeFS IO class inherit root IO
  # Only minimal mocks are provided as IO may be used by ruby's internals
  class IO < ::IO
    # Redirects ::IO.binread to ::FakeFS::File.binread
    def self.binread(*args)
      ::FakeFS::File.binread(*args)
    end

    # Redirects ::IO.read to ::FakeFS::File.read
    def self.read(*args)
      ::FakeFS::File.read(*args)
    end

    # Redirects ::IO.write to ::FakeFS::File.write
    def self.write(*args)
      ::FakeFS::File.write(*args)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fakefs-2.8.0 lib/fakefs/io.rb
fakefs-2.7.1 lib/fakefs/io.rb
fakefs-2.7.0 lib/fakefs/io.rb
fakefs-2.6.0 lib/fakefs/io.rb
fakefs-2.5.0 lib/fakefs/io.rb
fakefs-2.4.0 lib/fakefs/io.rb
fakefs-2.3.0 lib/fakefs/io.rb
fakefs-2.2.0 lib/fakefs/io.rb
fakefs-2.1.0 lib/fakefs/io.rb
fakefs-2.0.0 lib/fakefs/io.rb
fakefs-1.9.0 lib/fakefs/io.rb
fakefs-1.8.0 lib/fakefs/io.rb