I have a ruby script, which takes about 20 seconds to execute.

I want to show a dot (.) sign each second.

I think I need to use "sleep" method and a loop,
but I don't know how to add the functionality to my script.

Any help would be appreciated.