From: Daniel Berger Date: 2006-05-30T13:39:36+09:00 Subject: Re: Pathname transfire@gmail.com wrote: > Tanaka wrote: >> I think rewriting it in C is appropriate way to make it faster. > > I won't disagree with you there. So if that's in the works than no > worries. > > Two thoughts though. I liked being about to use << to add to a path. > Eg. > > pn = Pathname.new('a/b') > pn << 'c' > pn #=> # > > Some other array-like methods seem useful too, #each for instance. The pathname2 package already does this (although you use '+' instead of '<<'). > More importantly, I think it would be nice if there were a shorter way > to define a path, perhaps a percent literal like %p{a/b}. Good idea. I'm stealing it for pathname2. :) Regards, Dan