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.

File.stat("/dev/tty").chardev?   #=> true
doc_ruby_on_rails
2015-04-06 06:17:58
Comments
Leave a Comment

Please login to continue.