Class: RailsExcel::Strategies::WriteExcel

Inherits:
Object
  • Object
show all
Defined in:
lib/rails-excel/strategies/write_excel.rb,
lib/rails-excel/strategies/write_excel/version.rb

Constant Summary collapse

VERSION =
'0.0.1'

Instance Method Summary collapse

Instance Method Details

#compile(io) {|workbook| ... } ⇒ Object

Yields:

  • (workbook)


6
7
8
9
10
# File 'lib/rails-excel/strategies/write_excel.rb', line 6

def compile(io,&block)
  workbook = ::WriteExcel.new(io)
  yield(workbook)
  workbook.close
end