Class File
In:
Parent: IO

Methods

binread   dir?   read  

Public Class methods

[Source]

# File setup.rb, line 33
def File.binread(fname)
  open(fname, 'rb') {|f|
    return f.read
  }
end

for corrupted Windows’ stat(2)

[Source]

# File setup.rb, line 40
def File.dir?(path)
  File.directory?((path[-1,1] == '/') ? path : path + '/')
end

[Source]

# File setup.rb, line 18
  def File.read(fname)
    open(fname) {|f|
      return f.read
    }
  end

[Validate]