Class: Spreadsheet::Rails::TemplateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/excel_rails.rb

Class Method Summary collapse

Class Method Details

.call(template) ⇒ Object


29
30
31
# File 'lib/excel_rails.rb', line 29

def self.call(template)
  "sio = StringIO.new; #{template.source.strip}.write(sio); sio.string"
end