Ruby 1.9.3 Reference Manual > All Libraries > Builtin Library > class File > chardev?

singleton method File.chardev?

chardev?(path) -> bool

FileTest.#chardev? と同じです。

[PARAM] path:
パスを表す文字列か IO オブジェクトを指定します。