On Wed, Oct 24, 2012 at 2:06 PM, Rochit Sen <[email protected]> wrote:
...

> #cycle over every row
> temp = []
> worksheet.each do |row|
>   row.each do |cell|
>     temp = cell.to_s('latin1')
Here you are setting the 'temp' var to refer to the string
You need to add the string to the array
I think temp.append() or the '<<' operator is what you need


cheers

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to