# File lib/pathname2.rb, line 217 def undecorate unless @win raise NotImplementedError, "not supported on this platform" end buf = 0.chr * MAXPATH buf[0..self.length-1] = self PathUndecorate(buf) self.class.new(buf.split(0.chr).first) end