Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

File::Stat#dev_minor

() -> ::Integer?
dev_minor → integer

Returns nil on Windows.

On other systems, returns the minor part of the device number for the snapshot in self:

Example
File.stat('/etc').dev_minor # => 2
File.stat('/dev').dev_minor # => 5
See also #dev_major #directory? #dev #executable? also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0