instance method Pathname#mountpoint?

mountpoint? -> bool[permalink][rdoc]

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



require "pathname"

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