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



92
93
94
95
# File 'lib/fakefs/base.rb', line 92

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

#Pathname(*args) ⇒ Object



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

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