# File lib/spreadsheet/workbook.rb, line 72 def format idx case idx when Integer @formats[idx] || @default_format when String @formats.find do |fmt| fmt.name == idx end end end