Skip to content

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

Description

@cyrilsuzat

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions