Class: AsciiDataTools::Controller::CatController

Inherits:
AbstractController show all
Defined in:
lib/ascii-data-tools/controller.rb

Instance Method Summary collapse

Methods inherited from AbstractController

#initialize, #type_determiner

Constructor Details

This class inherits a constructor from AsciiDataTools::Controller::AbstractController

Instance Method Details

#runObject



39
40
41
42
43
# File 'lib/ascii-data-tools/controller.rb', line 39

def run
  formatting_filter = Filter::FormattingFilter.new(input_source.filename, type_determiner)
  formatting_filter << input_source
  formatting_filter.write(@configuration.output_stream)
end