= private = protected
relative?()
The opposite of Pathname#absolute?
It returns false if the pathname begins with a slash.
p = Pathname.new('/im/sure') p.relative? #=> false p = Pathname.new('not/so/sure') p.relative? #=> true
# File ext/pathname/lib/pathname.rb, line 242 def relative? path = @path while r = chop_basename(path) path, = r end path == '' end