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(arg = nil, &blk) ⇒ Object

rubocop:disable PrisonGuard/BanBuiltinMethodOverride



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

def sig(arg=nil, &blk) # rubocop:disable PrisonGuard/BanBuiltinMethodOverride
  T::Private::Methods.declare_sig(self, arg, &blk)
end