最速Rubyリファレンスマニュアル検索!
すべて(11)
2.1.0(1)
2.2.0(1)
2.3.0(1)
2.4.0(1)
2.5.0(1)
2.6.0(1)
2.7.0(1)
3.0(1)
3.1(1)
3.2(1)
3.3(1)
11件ヒット
[1-11件を表示]
(0.022秒)
トップページ
>
:
self
>
:relative?
別のキーワード
object yield_self
_builtin yield_self
_builtin self
tracepoint self
codeobject document_self
ライブラリ
pathname
(11)
クラス
Pathname
(11)
検索結果
先頭1件
Pathname
#
relative? -> bool
Pathname
#
relative? -> bool
(18129.0)
2.1.0
2.2.0
2.3.0
2.4.0
2.5.0
2.6.0
2.7.0
3.0
3.1
3.2
3.3
インスタンスメソッド
self が相対パス指定であれば真を返します。
...
self
が相対パス指定であれば真を返します。
//emlist[例][ruby]{
require 'pathname'
p = Pathname.new('/im/sure')
p.
relative?
#=> false
p = Pathname.new('not/so/sure')
p.
relative?
#=> true
//}
...
Pathname