Class: BarkestCore::CsvHandler::CsvGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/barkest_core/handlers/csv_handler.rb

Overview

:enddoc:

Class Method Summary collapse

Class Method Details

.generateObject



11
12
13
14
15
16
# File 'lib/barkest_core/handlers/csv_handler.rb', line 11

def self.generate
  file = CSV.generate do |csv|
    yield csv
  end
  file.html_safe
end