method

blocks

v1_8_7_72 - Show latest stable - Class: File::Stat
blocks()
public

Returns the number of native file system blocks allocated for this file, or nil if the operating system doesn’t support this feature.

   File.stat("testfile").blocks   #=> 2