Top Level Namespace

Defined Under Namespace

Modules: FakeFS

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#FakeFS(&block) ⇒ Object



118
119
120
121
# File 'lib/fakefs/base.rb', line 118

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

#Pathname(*args) ⇒ Object



14
15
16
# File 'lib/fakefs/base.rb', line 14

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

#RealPathname(*args) ⇒ Object



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

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