method

blksize

v1_8_6_287 - 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