From: ahoward Date: 2003-06-03T06:08:39+09:00 Subject: Re: [OT] Re: Metakit for Ruby - Would you want it? On Tue, 3 Jun 2003, Pit Capitain wrote: > If you're going The Ruby Way, why not > > table.select { |row| row.foo =~ /hello/i } > > :-) or even: relation.select(:field0, :field1){|tuple| tuple[:field0, :field1] === [/foo/, /bar/]} i actually have something which does the above using named fields in arrays. it's very cool but slower than dirt ;-) -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ara.t.howard@noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 | ~ > ruby -e 'p % ^) .intern' ====================================