To run a command 5 times in a row, you can do
5.times { send_sms_to("xxx") }
For more info, see the times
documentation and there’s also the times
section of Ruby Essentials
To run a command 5 times in a row, you can do
5.times { send_sms_to("xxx") }
For more info, see the times
documentation and there’s also the times
section of Ruby Essentials