From: Tobias Reif Date: 2001-10-28T00:06:44+09:00 Subject: [ruby-talk:23625] Re: FileSpec vs Dir/File class methods Niklas Frykholm wrote: > With a Path class that would be (for example): > > p = Path.new('/usr/aDirectory') > p.exists? >> true > p[0] >> '/' > p[1] >> 'usr' > p.length >> 3 > p.directory? >> true I think that would be a great addition to the standard lib. > On the other hand it would complicate the language (more to learn). I don't think so; it's optional to learn. In situations it's useful, the user is thankful it's there. Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/