Module: FakeFS::FileTest

Extended by:
FileTest
Included in:
FileTest
Defined in:
lib/fakefs/file_test.rb

Overview

FileTest

Instance Method Summary collapse

Instance Method Details

#directory?(file_name) ⇒ Boolean


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

def directory?(file_name)
  File.directory?(file_name)
end

#exist?(file_name) ⇒ Boolean


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

def exist?(file_name)
  File.exist?(file_name)
end

#file?(file_name) ⇒ Boolean


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

def file?(file_name)
  File.file?(file_name)
end

#readable?(file_name) ⇒ Boolean


22
23
24
# File 'lib/fakefs/file_test.rb', line 22

def readable?(file_name)
  File.readable?(file_name)
end

#size?(file_name) ⇒ Boolean


18
19
20
# File 'lib/fakefs/file_test.rb', line 18

def size?(file_name)
  File.size?(file_name)
end

#writable?(file_name) ⇒ Boolean


26
27
28
# File 'lib/fakefs/file_test.rb', line 26

def writable?(file_name)
  File.writable?(file_name)
end

#zero?(file_name) ⇒ Boolean


30
31
32
# File 'lib/fakefs/file_test.rb', line 30

def zero?(file_name)
  File.zero?(file_name)
end