Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > pathnameライブラリ > Pathnameクラス > relative?

instance method Pathname#relative?

relative? -> bool

self が相対パス指定であれば真を返します。

class Pathname