Tell Ruby Program to Wait some amount of time
How do you tell a Ruby program to wait an arbitrary amount of time before moving on to the next line of code? 7 Answers 7 Like this: sleep(num_secs) The num_secs value can be an integer or float. Also, if you’re writing this within a Rails app, or have included the ActiveSupport library in your … Read more