I have two arrays extracted from a HTML page:
@row_left = ['Title:', 'Author:', 'Price:', 'Description:', 'Seller:']
@row_right = ['The Well-Grounded Rubyist', 'David A. Black', '$34.99', 'A great book for Rubyists', 'Ruby Scholar']
How can I combine both arrays into a hash?
{
"Title:" => "The Well-Grounded Rubyist",
"Author:" => "David A. Black",
"Price:" => "$34.99",
"Description:" => "A great book for Rubyists",
"Seller:" => "Ruby Scholar"
}
@row_left, what is@row_rightand what is your expected result?