# File lib/pathname.rb, line 494 def relative? path = @path while r = chop_basename(path) path, basename = r end path == '' end