method

blksize

v1_9_2_180 - Show latest stable - Class: File::Stat
blksize()
public

Returns the native file system’s block size. Will return nil on platforms that don’t support this information.

File.stat("testfile").blksize   #=> 4096