In Files

Parent

Methods

Rainbows::State

global vars because class/instance variables are confusing me :< this struct is only accessed inside workers and thus private to each G.cur may not be used in the network concurrency model

Public Instance Methods

quit!() click to toggle source

(Not documented)

    # File lib/rainbows.rb, line 18
18:     def quit!
19:       self.alive = false
20:       self.expire ||= Time.now + (server.timeout * 2.0)
21:       server.class.const_get(:LISTENERS).map! { |s| s.close rescue nil }
22:       false
23:     end
tick() click to toggle source

(Not documented)

    # File lib/rainbows.rb, line 12
12:     def tick
13:       tmp.chmod(self.m = m == 0 ? 1 : 0)
14:       exit!(2) if expire && Time.now >= expire
15:       alive && server.master_pid == Process.ppid or quit!
16:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.