Method: Ld::Excel#write_sheet
- Defined in:
- lib/ld/excel/excel.rb
#write_sheet(sheet_name, &block) ⇒ Object
91 92 93 94 95 96 97 98 99 100 |
# File 'lib/ld/excel/excel.rb', line 91 def write_sheet sheet_name, &block sheet = new_sheet sheet_name block.call sheet sheet.save true rescue puts $! puts $@ false end |