From: Peter Hickman Date: 2008-02-20T20:54:28+09:00 Subject: Re: Is there any object-oriented File class in ruby ? 7stud -- wrote: > irb(main):001:0> VERSION > => "1.8.6" > irb(main):002:0> File.basename("C:\\home\\gumby\\work\\ruby.rb") > => "C:\\home\\gumby\\work\\ruby.rb" > irb(main):003:0> > So you ran ruby on linux (or OSX) and gave it a fully qualified windows filename, what were you expecting? Some magical utility that can take a string and work out what operating system the filename comes from and then parse that? Patches welcome.