Class: Csvtool::Interface::CLI::Workflows::Presenters::ColumnExtractionPresenter
- Inherits:
-
Object
- Object
- Csvtool::Interface::CLI::Workflows::Presenters::ColumnExtractionPresenter
- Defined in:
- lib/csvtool/interface/cli/workflows/presenters/column_extraction_presenter.rb
Instance Method Summary collapse
-
#initialize(stdout:) ⇒ ColumnExtractionPresenter
constructor
A new instance of ColumnExtractionPresenter.
- #print_file_written(path) ⇒ Object
- #print_value(value) ⇒ Object
Constructor Details
#initialize(stdout:) ⇒ ColumnExtractionPresenter
Returns a new instance of ColumnExtractionPresenter.
9 10 11 |
# File 'lib/csvtool/interface/cli/workflows/presenters/column_extraction_presenter.rb', line 9 def initialize(stdout:) @stdout = stdout end |
Instance Method Details
#print_file_written(path) ⇒ Object
17 18 19 |
# File 'lib/csvtool/interface/cli/workflows/presenters/column_extraction_presenter.rb', line 17 def print_file_written(path) @stdout.puts "Wrote output to #{path}" end |
#print_value(value) ⇒ Object
13 14 15 |
# File 'lib/csvtool/interface/cli/workflows/presenters/column_extraction_presenter.rb', line 13 def print_value(value) @stdout.puts value end |