From: Aredridel Date: 2005-01-22T03:50:06+09:00 Subject: Re: Xpath like syntax On Sat, 2005-01-22 at 03:30 +0900, trans. wrote: > > I was planning on implementing something like this this week! > > Common wavelengths are amazing common around here :-) > Perhaps then you'd be interested in what I have suggested about buiding > a general purpose class for these use cases? I was thinking of doing that as well, so I certainly would. I was thinking that a traverse_path operation is pretty common, and any set of objects implementing that protocol could be used .. be they a filesystem tree, an XML document, or an object graph. I still haven't figured out what the basic API should look like, but I can imagine it being similar in complexity to Enumerable -- a sort of Traversable object. Ari ---- Ruby web hosting? http://theinternetco.net/offers/ruby