Module: T::Sig

Overview

Used as a mixin to any class so that you can call ‘sig`. Docs at sorbet.org/docs/sigs

Defined Under Namespace

Modules: WithoutRuntime

Instance Method Summary collapse

Instance Method Details

#sig(arg0 = nil, &blk) ⇒ Object



27
28
29
# File 'lib/types/sig.rb', line 27

def sig(arg0=nil, &blk)
  T::Private::Methods.declare_sig(self, Kernel.caller_locations(1, 1)&.first, arg0, &blk)
end