-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Description
I was looking at https://github.com/ruby/rbs/blob/c64d1f5ba5a4fbc95ffb1d72d783ee39b17d60fe/stdlib/builtin/builtin.rbs, where a lot of common knownn interfaces are stored. I was wondering whether there should be one for "callable" objects, that is: implements #call
. Objects implementing this interface can already be passed to places where are expected, for example.
interface _Callable
def call: (*untyped) -> void
alias [] call
end
Metadata
Metadata
Assignees
Labels
No labels