Method: Saxlsx::SheetCollectionParser#end_element

Defined in:
lib/saxlsx/sheet_collection_parser.rb

#end_element(name) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/saxlsx/sheet_collection_parser.rb', line 31

def end_element(name)
  case name
  when :sheet
    @block.call Sheet.new(
      @current_sheet.name,
      @current_sheet.index,
      @file_system,
      @workbook
    )
    @current_sheet = nil
  when :workbookPr
    @workbook_pr = false
  end
end