Class: Tasker::Events::Catalog::CatalogPrinter
- Inherits:
-
Object
- Object
- Tasker::Events::Catalog::CatalogPrinter
- Defined in:
- lib/tasker/events/catalog.rb
Overview
Service class to handle catalog printing and formatting Reduces complexity by organizing output logic
Class Method Summary collapse
-
.print(catalog, output = nil) ⇒ void
Print the complete catalog with formatting.
Class Method Details
.print(catalog, output = nil) ⇒ void
This method returns an undefined value.
Print the complete catalog with formatting
349 350 351 352 353 354 |
# File 'lib/tasker/events/catalog.rb', line 349 def print(catalog, output = nil) log_line = build_log_function(output) print_header(log_line) print_categories(catalog, log_line) end |