Module: Aidp::Interfaces::SpinnerInterface
- Included in:
- NullSpinner, TtySpinnerWrapper
- Defined in:
- lib/aidp/interfaces/ui_interface.rb
Overview
SpinnerInterface defines the contract for spinner objects.
Instance Method Summary collapse
-
#auto_spin ⇒ void
Start the spinner animation.
-
#error(message = nil) ⇒ void
Stop the spinner with an error indicator.
-
#success(message = nil) ⇒ void
Stop the spinner with a success indicator.
-
#update_title(title) ⇒ void
Update the spinner title.
Instance Method Details
#auto_spin ⇒ void
This method returns an undefined value.
Start the spinner animation.
86 87 88 |
# File 'lib/aidp/interfaces/ui_interface.rb', line 86 def auto_spin raise NotImplementedError, "#{self.class} must implement #auto_spin" end |
#error(message = nil) ⇒ void
This method returns an undefined value.
Stop the spinner with an error indicator.
100 101 102 |
# File 'lib/aidp/interfaces/ui_interface.rb', line 100 def error( = nil) raise NotImplementedError, "#{self.class} must implement #error" end |
#success(message = nil) ⇒ void
This method returns an undefined value.
Stop the spinner with a success indicator.
93 94 95 |
# File 'lib/aidp/interfaces/ui_interface.rb', line 93 def success( = nil) raise NotImplementedError, "#{self.class} must implement #success" end |
#update_title(title) ⇒ void
This method returns an undefined value.
Update the spinner title.
107 108 109 |
# File 'lib/aidp/interfaces/ui_interface.rb', line 107 def update_title(title) raise NotImplementedError, "#{self.class} must implement #update_title" end |