Skip to content

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

@cyrilsuzat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions