senthil, please don't take this personally, your question is OK, but the
following sounds so very wrong:
> i am having an array of ruby beans (...)
All we have in Ruby are objects. No beans, POROs, ERBs, and all this cruft.
Regards,
Pit