Sheets_name.rb

This content was produced by an LLM and could include errors.

This script uses the roo gem to load an Excel file. It initializes the workbook object and then executes the sheets method, successfully listing the names of all available tabs.

require 'roo'
#=> true

xlsx = Roo::Excelx.new('input/roo/book.xlsx')
#=> <#Roo::Excelx:2030 @tmpdir @shared @filename @sheet_files @sheet_names @sheets @...
xlsx.sheets
#=> ["mysheet", "mysheet2"]

Ruby 4.0.3