Add initial RBS support with Steep and TypeProf
This commit is contained in:
18
sig/vendor/event_machine/channel.rbs
vendored
Normal file
18
sig/vendor/event_machine/channel.rbs
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# Added only to satisfy the Steep requirements. Not 100% reliable.
|
||||
module EventMachine
|
||||
class Channel
|
||||
@subs: Hash[untyped, untyped]
|
||||
@uid: Integer
|
||||
|
||||
def initialize: -> void
|
||||
def num_subscribers: -> Integer
|
||||
def subscribe: (*untyped a) ?{ -> untyped } -> Integer
|
||||
def unsubscribe: (untyped name) -> untyped
|
||||
def push: (*untyped items) -> untyped
|
||||
alias << push
|
||||
def pop: (*untyped a) -> untyped
|
||||
|
||||
private
|
||||
def gen_id: -> Integer
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user