Class: DiningTable::Presenters::CSVPresenter
- Inherits:
-
SpreadsheetPresenter
- Object
- Presenter
- SpreadsheetPresenter
- DiningTable::Presenters::CSVPresenter
- Defined in:
- lib/dining-table/presenters/csv_presenter.rb
Instance Attribute Summary collapse
- #output ⇒ Object readonly
Attributes inherited from Presenter
#options, #table, #view_context
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(*args) ⇒ CSVPresenter
constructor
A new instance of CSVPresenter.
Methods inherited from SpreadsheetPresenter
#render_footer, #render_header, #render_row
Methods inherited from Presenter
Constructor Details
#initialize(*args) ⇒ CSVPresenter
Returns a new instance of CSVPresenter.
13 14 15 16 |
# File 'lib/dining-table/presenters/csv_presenter.rb', line 13 def initialize( *args ) super self.output = '' end |
Instance Attribute Details
#output ⇒ Object
22 23 24 |
# File 'lib/dining-table/presenters/csv_presenter.rb', line 22 def output stringio.string end |
Instance Method Details
#identifier ⇒ Object
18 19 20 |
# File 'lib/dining-table/presenters/csv_presenter.rb', line 18 def identifier :csv end |