Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/documenter/csv.rb
Instance Method Summary collapse
-
#to_csv(params = {}) ⇒ Object
saving data from array.
Instance Method Details
#to_csv(params = {}) ⇒ Object
saving data from array
107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/documenter/csv.rb', line 107 def to_csv params={} params[:data] = self #we can you block t change data defore saving if block_given? Csv.save(params) do |row| yield row end else Csv.save(params) end end |