instance method Pathname#mountpoint?

mountpoint? -> bool[permalink][rdoc][edit]

self がマウントポイントであれば真を返します。



require "pathname"

path = Pathname("/")
path.mountpoint? # => true
path = Pathname("/usr")
path.mountpoint? # => false