# File lib/pathname2.rb, line 555 def drive_number unless @win raise NotImplementedError, "not supported on this platform" end num = PathGetDriveNumber(self) num >= 0 ? num : nil end