From: Joel VanderWerf Date: 2010-08-31T10:14:29+09:00 Subject: Re: XSLT-like search in a Ruby Hash On 08/30/2010 05:29 PM, Pito Salas wrote: > I have a need for some relatively fancy searching in a hash, and I am > wondering if there's anything that does some kind of pattern matching on > Hash contents. > > Specifically here's an example of what I would like to be able to write: > http://www.pastie.org/1127920 > > Yes, I can write the iterators, collects, merges and what else, but > nicer would be some kind of structured query syntax. Any ideas? > > Thanks! > > Pito Might be something useful here: http://eigenclass.org/hiki/Pattern+matching+over+Ruby+objects