Class: SnowmanIO::Loop::Main

Inherits:
Object
  • Object
show all
Includes:
Celluloid
Defined in:
lib/snowman-io/loop/main.rb

Instance Method Summary collapse

Constructor Details

#initializeMain

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

#tickObject



10
11
12
13
# File 'lib/snowman-io/loop/main.rb', line 10

def tick
  perform
  after(3) { tick }
end