absolute? -> bool
self が絶対パス指定であれば真を返します。
例 require "pathname" pathname = Pathname("/path/to/example.rb") pathname.absolute? # => true pathname = Pathname("../") pathname.absolute? # => false
require "pathname" pathname = Pathname("/path/to/example.rb") pathname.absolute? # => true pathname = Pathname("../") pathname.absolute? # => false