Module: T::Sig
- Included in:
- Enum, Helpers, ImmutableStruct, Props::ClassMethods, Props::Constructor::DecoratorMethods, Props::CustomType, Props::Decorator, Props::HasLazilySpecializedMethods, Props::HasLazilySpecializedMethods::DecoratorMethods, Props::Optional::DecoratorMethods, Props::PrettyPrintable::DecoratorMethods, Props::Private::ApplyDefault, Props::Private::DeserializerGenerator, Props::Private::SerdeTransform, Props::Private::SerializerGenerator, Props::Private::SetterFactory, Props::TypeValidation::DecoratorMethods, Props::WeakConstructor, Props::WeakConstructor::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
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 |