chardev?

stat.chardev? â true or false
Instance Public methods

Returns true if the file is a character device, false if it isn't or if the operating system doesn't support this feature.

1
File.stat("/dev/tty").chardev?   #=> true
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.