Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
felipenoris committed Jan 4, 2024
1 parent 35d9586 commit c5d4c3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/workbook.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ Returns a vector with Worksheet names for this Workbook.
sheetnames(wb::Workbook) = [ s.name for s in wb.sheets ]
@inline sheetnames(xl::XLSXFile) = sheetnames(xl.workbook)

"""
hassheet(wb::Workbook, sheetname::AbstractString) :: Bool
Returns `true` if `wb` contains a sheet named `sheetname`.
"""
function hassheet(wb::Workbook, sheetname::AbstractString) :: Bool
for s in wb.sheets
if s.name == sheetname
Expand Down

0 comments on commit c5d4c3e

Please sign in to comment.