method

blksize

ruby 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