Sha256: d8c27eb9d798305a7d055a33a2401dd7971cea7d2118627412b6aee5cb45f135

Contents?: true

Size: 471 Bytes

Versions: 17

Compression:

Stored size: 471 Bytes

Contents

module FakeFS
  # FileTest
  module FileTest
    extend self

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

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

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

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

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
fakefs-0.11.3 lib/fakefs/file_test.rb
fakefs-0.11.2 lib/fakefs/file_test.rb
fakefs-0.11.1 lib/fakefs/file_test.rb
fakefs-0.11.0 lib/fakefs/file_test.rb
fakefs-0.10.2 lib/fakefs/file_test.rb
fakefs-0.10.1 lib/fakefs/file_test.rb
fakefs-0.10.0 lib/fakefs/file_test.rb
fakefs-0.9.3 lib/fakefs/file_test.rb
fakefs-0.9.2 lib/fakefs/file_test.rb
fakefs-0.9.1 lib/fakefs/file_test.rb
fakefs-0.9.0 lib/fakefs/file_test.rb
fakefs-0.8.1 lib/fakefs/file_test.rb
fakefs-0.8.0 lib/fakefs/file_test.rb
fakefs-0.7.0 lib/fakefs/file_test.rb
fakefs-0.6.7 lib/fakefs/file_test.rb
fakefs-0.6.5 lib/fakefs/file_test.rb
fakefs-0.6.4 lib/fakefs/file_test.rb