= private = protected
absolute?()
Predicate method for testing whether a path is absolute.
It returns true if the pathname begins with a slash.
p = Pathname.new('/im/sure') p.absolute? #=> true p = Pathname.new('not/so/sure') p.absolute? #=> false
# File ext/pathname/lib/pathname.rb, line 227 def absolute? !relative? end