Class: Csvtool::Interface::CLI::Workflows::Presenters::ColumnExtractionPresenter

Inherits:
Object
  • Object
show all
Defined in:
lib/csvtool/interface/cli/workflows/presenters/column_extraction_presenter.rb

Instance Method Summary collapse

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



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


13
14
15
# File 'lib/csvtool/interface/cli/workflows/presenters/column_extraction_presenter.rb', line 13

def print_value(value)
  @stdout.puts value
end