From: Admin Tensor Date: 2012-08-13T02:03:28+09:00 Subject: Re: Help with database-related code pls Brian Candler wrote in post #1072080: > Jan E. wrote in post #1072075: >> Why do you guys keep saying that it's an array when you have no idea >> which database library this even is? > > Sure, it might not actually be Array, but it's clearly some sort of > collection which wraps the result rows. > > I'm only guessing it's Array just because the rows seem to be plain > Hashes rather than any fancy ORM wrapper object. > > Let the OP print result.class and then we'll know for sure. I think it is not really an "Array" per se, but something that includes the Enumerable module (just like in sqlite3 or mysql2). Regards, Bill -- Posted via http://www.ruby-forum.com/.