# File lib/pathname2.rb, line 287 def pstrip str = self.dup if @win PathRemoveBackslash(str) str.strip! else if str.to_s[-1].chr == @sep str.strip! str.chop! end end self.class.new(str) end