absolute? -> bool[permalink][rdoc]-
self が絶対パス指定であれば真を返します。
例require "pathname" pathname = Pathname("/path/to/example.rb") pathname.absolute? # => true pathname = Pathname("../") pathname.absolute? # => false
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
absolute? -> bool[permalink][rdoc]self が絶対パス指定であれば真を返します。
例require "pathname"
pathname = Pathname("/path/to/example.rb")
pathname.absolute? # => true
pathname = Pathname("../")
pathname.absolute? # => false