blksize

stat.blksize â integer or nil Instance Public methods Returns the native file system's block size. Will return nil on platforms that don't support this information. File.stat("testfile").blksize #=> 4096

atime

stat.atime â time Instance Public methods Returns the last access time for this file as an object of class Time. File.stat("testfile").atime #=> Wed Dec 31 18:00:00 CST 1969

<=>

stat other_stat â -1, 0, 1, nil Instance Public methods Compares File::Stat objects by comparing their respective modification times. nil is returned if the two values are incomparable. f1 = File.new("f1", "w") sleep 1 f2 = File.new("f2", "w") f1.stat <=> f2.stat #=> -1

new

File::Stat.new(file_name) â stat Class Public methods Create a File::Stat object for the given file name (raising an exception if the file doesn't exist).

win32_last_error=

win32_last_error=(error) Class Public methods Sets the last win32 Error of the current executing Thread to error

win32_last_error

win32_last_error() Class Public methods Returns the last win32 Error of the current executing Thread or nil if none

realloc

Fiddle.realloc(addr, size) Class Public methods Change the size of the memory allocated at the memory location addr to size bytes. Returns the memory address of the reallocated memory, which may be different than the address passed in.

malloc

Fiddle.malloc(size) Class Public methods Allocate size bytes of memory and return the integer memory address for the allocated memory.

last_error=

last_error=(error) Class Public methods Sets the last Error of the current executing Thread to error

last_error

last_error() Class Public methods Returns the last Error of the current executing Thread or nil if none