roo-rb/roo

[Doc] Iterate through each sheet with "each_with_pagename" not working anymore

cyrilsuzat opened this issue · 2 comments

Steps to reproduce

xlsx = Roo::Spreadsheet.open('./new_prices.xlsx')

xlsx.each_with_pagename do |name, sheet|
  p name
end

=> #<Enumerator: #<Enumerator::Generator:0x0000000107d6b188>:each>

Issue

If think the method each_with_pagename has changed and the doc should be adapted accordingly, with something like this :

# Iterate through each sheet
xlsx.sheets.each do |name|
  sheet = xlsx.sheet(name)
  p name
end
fonji commented

There are two open PRs that attemps to fix this #588 and #584 but no news…

fonji commented

As #584 is merged, I guess this is just waiting for a new release