4 ms·
You can sort that out easily by doing something like: module T module Sig def sig *args end end # You'd need to stub
by vidarh 6y ago
You can sort that out easily by doing something like:
module T
module Sig
def sig *args
end
end
# You'd need to stub out a few more things here.
end
begin
require 'sorbet-runtime'
rescue LoadError
end
Basically as far as what I can tell from just having briefly looked at Sorbet, you could quite easily stub out the bare minimum to allow people to choose whether to pull in the full thing or not. It'd be nice if they provided a gem that did that.