File: emitter.rbs

package info (click to toggle)
ruby-http-2 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 13,360 kB
  • sloc: ruby: 6,031; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
module HTTP2
  module Emitter
    @listeners: Hash[Symbol, Array[^(*untyped) -> void]]

    def on: (Symbol event) { (*untyped) -> void } -> void

    def once: (Symbol event) { (*untyped) -> void } -> void

    def emit: (Symbol event, *untyped args) ?{ (*untyped) -> void } -> void
  end
end