Class: Sxn::UI::ProgressBar::Stepper
- Inherits:
-
Object
- Object
- Sxn::UI::ProgressBar::Stepper
- Defined in:
- lib/sxn/ui/progress_bar.rb
Overview
Helper class for step-by-step operations
Instance Method Summary collapse
-
#initialize(progress_bar) ⇒ Stepper
constructor
A new instance of Stepper.
- #log(message) ⇒ Object
- #step(message = nil) ⇒ Object
Constructor Details
#initialize(progress_bar) ⇒ Stepper
Returns a new instance of Stepper.
76 77 78 |
# File 'lib/sxn/ui/progress_bar.rb', line 76 def initialize() @progress = end |
Instance Method Details
#log(message) ⇒ Object
85 86 87 |
# File 'lib/sxn/ui/progress_bar.rb', line 85 def log() @progress.log() end |
#step(message = nil) ⇒ Object
80 81 82 83 |
# File 'lib/sxn/ui/progress_bar.rb', line 80 def step( = nil) @progress.log() if @progress.advance end |