instance method URI::Generic#absolute
absolute -> boolabsolute? -> bool-
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
例:
p URI.parse('http://example.com/').absolute? #=> true p URI.parse('./').absolute? #=> false
class URI::Generic
absolute -> boolabsolute? -> bool自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
例:
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false