From: Relm Date: 2004-07-02T19:17:02+09:00 Subject: Re: [ANN] SQLite-Ruby 1.2.0 On Fri, 2 Jul 2004, Ara.T.Howard wrote: > On Fri, 2 Jul 2004, Kirk Haines wrote: > > > I was going to suggest that the hash methods be added. I don't see a > > downside to doing that. > > some of them are out, like each, since the impl for Array and Hash are > different, but some methods like > > #fetch > #keys > #values > > would be a nice ducktype facet. i'll look into this for the next release > which, i hope, will include a C impl as well. How about checking the arity of the block given to #each: row.each {|x| } # Array row.each {|k,v| } # Hash Adding #each_pair would work nicely also. -- Relm