Top Level Namespace

Defined Under Namespace

Modules: FakeFS

Constant Summary collapse

RealFile =
File
RealFileTest =
FileTest
RealFileUtils =
FileUtils
RealDir =
Dir
RealPathname =
Pathname

Instance Method Summary collapse

Instance Method Details

#FakeFS(&block) ⇒ Object



107
108
109
110
# File 'lib/fakefs/base.rb', line 107

def FakeFS(&block)
  return ::FakeFS unless block
  ::FakeFS.with(&block)
end

#Pathname(*args) ⇒ Object



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

def Pathname(*args)
  Pathname.new(*args)
end

#RealPathname(*args) ⇒ Object



7
8
9
# File 'lib/fakefs/base.rb', line 7

def RealPathname(*args)
  RealPathname.new(*args)
end