Class: FakeFS::IO

Inherits:
IO
  • Object
show all
Defined in:
lib/fakefs/io.rb

Overview

FakeFS IO class inherit root IO Only minimal mocks are provided as IO may be used by ruby’s internals

Class Method Summary collapse

Class Method Details

.binread(*args) ⇒ Object

Redirects ::IO.binread to ::FakeFS::File.binread



6
7
8
# File 'lib/fakefs/io.rb', line 6

def self.binread(*args)
  ::FakeFS::File.binread(*args)
end

.read(*args) ⇒ Object

Redirects ::IO.read to ::FakeFS::File.read



11
12
13
# File 'lib/fakefs/io.rb', line 11

def self.read(*args)
  ::FakeFS::File.read(*args)
end

.write(*args) ⇒ Object

Redirects ::IO.write to ::FakeFS::File.write



16
17
18
# File 'lib/fakefs/io.rb', line 16

def self.write(*args)
  ::FakeFS::File.write(*args)
end