Module: T::Sig
- Included in:
- InterfaceWrapper, Props::ClassMethods, Props::Decorator, Props::PrettyPrintable::DecoratorMethods, Props::TypeValidation::DecoratorMethods, Types::Enum
- Defined in:
- lib/types/sig.rb
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
-
#sig(arg = nil, &blk) ⇒ Object
rubocop:disable PrisonGuard/BanBuiltinMethodOverride.
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 |