I’m rather new to Ruby and I’m trying to figure out how to print out
percentage completed message on a single line instead of printing out
massive amount of messages like the following:
Percentage completed: 1%,
Percentage completed: 15%,
Percentage completed: 50%,… so on…
It should just be one line.
Percentage completed: ("#{percent_completed_variable}%")
Thank you…
On Thu, Aug 12, 2010 at 12:34 PM, Boris X. [email protected]
wrote:
It should just be one line.
Percentage completed: (“#{percent_completed_variable}%”)
try the ff in irb,
101.times{|x| printf “#{x}%%\r” ;sleep 1}
best regards -botp
botp wrote:
On Thu, Aug 12, 2010 at 12:34 PM, Boris X. [email protected]
wrote:
It should just be one line.
Percentage completed: (“#{percent_completed_variable}%”)
try the ff in irb,
101.times{|x| printf “#{x}%%\r” ;sleep 1}
best regards -botp
Thanks a lot, that solves it.