1件ヒット
[1-1件を表示]
(0.245秒)
検索結果
-
Pathname
# absolute? -> bool (118240.0) -
self が絶対パス指定であれば真を返します。
self が絶対パス指定であれば真を返します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/example.rb")
pathname.absolute? # => true
pathname = Pathname("../")
pathname.absolute? # => false
//}