Class: SnowmanIO::Loop::Main
- Inherits:
-
Object
- Object
- SnowmanIO::Loop::Main
- Includes:
- Celluloid
- Defined in:
- lib/snowman-io/loop/main.rb
Instance Method Summary collapse
-
#initialize ⇒ Main
constructor
A new instance of Main.
- #tick ⇒ Object
Constructor Details
#initialize ⇒ Main
Returns a new instance of Main.
6 7 8 |
# File 'lib/snowman-io/loop/main.rb', line 6 def initialize after(1) { tick } end |
Instance Method Details
#tick ⇒ Object
10 11 12 13 |
# File 'lib/snowman-io/loop/main.rb', line 10 def tick perform after(3) { tick } end |