Method: Commander::UI::ProgressBar#percent_complete
- Defined in:
- lib/commander/user_interaction.rb
#percent_complete ⇒ Object
Completion percentage.
456 457 458 459 460 461 462 |
# File 'lib/commander/user_interaction.rb', line 456 def percent_complete if @total_steps.zero? 100 else @step * 100 / @total_steps end end |