Sha256: 763cc2c36a9f828f46cf057bf12684bce6c9b289516e043d9e1c980ffe28daa7

Contents?: true

Size: 389 Bytes

Versions: 23

Compression:

Stored size: 389 Bytes

Contents

module Thin
  class Callbacks
    def self.after_connect_callbacks
      @after_connect_callbacks ||= []
    end

    def self.after_connect(&block)
      after_connect_callbacks << block
    end

    def self.before_disconnect_callbacks
      @before_disconnect_callbacks ||= []
    end

    def self.before_disconnect(&block)
      before_disconnect_callbacks << block
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
big_brother-0.8.8.1 lib/thin/callbacks.rb
big_brother-0.8.8 lib/thin/callbacks.rb
big_brother-0.8.7 lib/thin/callbacks.rb
big_brother-0.6.8 lib/thin/callbacks.rb
big_brother-0.6.7 lib/thin/callbacks.rb
big_brother-0.6.6 lib/thin/callbacks.rb
big_brother-0.6.5 lib/thin/callbacks.rb
big_brother-0.6.4 lib/thin/callbacks.rb
big_brother-0.6.3 lib/thin/callbacks.rb
big_brother-0.6.2 lib/thin/callbacks.rb
big_brother-0.6.1 lib/thin/callbacks.rb
big_brother-0.6.0 lib/thin/callbacks.rb
big_brother-0.5.0 lib/thin/callbacks.rb
big_brother-0.4.1 lib/thin/callbacks.rb
big_brother-0.4.0 lib/thin/callbacks.rb
litmus_paper-0.2.2 lib/thin/callbacks.rb
litmus_paper-0.2.1 lib/thin/callbacks.rb
litmus_paper-0.2.0 lib/thin/callbacks.rb
big_brother-0.3.1 lib/thin/callbacks.rb
big_brother-0.3.0 lib/thin/callbacks.rb