Method: Writexlsx::Sheets#make_and_check_sheet_chart_name

Defined in:
lib/write_xlsx/sheets.rb

#make_and_check_sheet_chart_name(type, name) ⇒ Object



29
30
31
32
33
34
35
# File 'lib/write_xlsx/sheets.rb', line 29

def make_and_check_sheet_chart_name(type, name)
  count = sheet_chart_count(type)
  name = "#{BASE_NAME[type]}#{count + 1}" unless ptrue?(name)

  check_valid_sheetname(name)
  name
end