method

blockdev?

ruby latest stable - Class: FileTest
blockdev?(p1)
public

Returns true if the named file is a block device.

file_name can be an IO object.