Class: Pathname
Instance Method Summary collapse
-
#dir? ⇒ Boolean
Like directory? but return self if true, otherwise nil.
Instance Method Details
#dir? ⇒ Boolean
Like directory? but return self if true, otherwise nil.
6 7 8 |
# File 'lib/ratch/core_ext/pathname.rb', line 6 def dir? directory? ? self : nil end |