instance method Pathname#directory?

directory? -> bool[permalink][rdoc]

FileTest.directory?(self.to_s) と同じです。

[SEE_ALSO] FileTest.#directory?