This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Write code, which will allow execution of following. This code should | |
| # run idefinietly and output the "hello" string two times per second. | |
| 2.times.per_second { puts "hello" } | |
| # => "hello" | |
| # => "hello" | |
| # [...] | |
| # This example should execute given code 10 times per second (every 100ms). |