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