From: Jan Friedrich Date: 2008-02-20T21:45:03+09:00 Subject: Re: Is there any object-oriented File class in ruby ? 7stud -- wrote: > Christopher Dicely wrote: >> The documentation is incorrect. >> >> irb(main):049:0> VERSION >> => "1.8.6" >> irb(main):050:0> File.basename("C:\\home\\gumby\\work\\ruby.rb") => >> "ruby.rb" >> >> > > 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> No it is correct: On a Non-Windows system you can have a file with the name "C:\\home\\gumby\\work\\ruby.rb" in the actual directory. :P Regards Jan