Class: Aidp::Harness::StatusDisplay::StatusFormatter
- Inherits:
-
Object
- Object
- Aidp::Harness::StatusDisplay::StatusFormatter
- Defined in:
- lib/aidp/harness/status_display.rb
Overview
Helper classes
Instance Method Summary collapse
- #format_status(status_data, format_type) ⇒ Object
-
#initialize ⇒ StatusFormatter
constructor
A new instance of StatusFormatter.
Constructor Details
#initialize ⇒ StatusFormatter
Returns a new instance of StatusFormatter.
769 770 771 |
# File 'lib/aidp/harness/status_display.rb', line 769 def initialize @formatters = {} end |
Instance Method Details
#format_status(status_data, format_type) ⇒ Object
773 774 775 776 777 778 779 780 781 782 783 784 |
# File 'lib/aidp/harness/status_display.rb', line 773 def format_status(status_data, format_type) case format_type when :compact format_compact_status(status_data) when :detailed format_detailed_status(status_data) when :json JSON.pretty_generate(status_data) else status_data.to_s end end |