Sha256: e4f6e29e2bf43ab43a7d5476d85cf8691baea8e0b84e96a75daa0b8343f807b4
Contents?: true
Size: 1.14 KB
Versions: 167
Compression:
Stored size: 1.14 KB
Contents
# frozen_string_literal: true # typed: strict # Used as a mixin to any class so that you can call `sig`. # Docs at https://sorbet.org/docs/sigs module T::Sig module WithoutRuntime # At runtime, does nothing, but statically it is treated exactly the same # as T::Sig#sig. Only use it in cases where you can't use T::Sig#sig. def self.sig(arg0=nil, &blk); end original_verbose = $VERBOSE $VERBOSE = false # At runtime, does nothing, but statically it is treated exactly the same # as T::Sig#sig. Only use it in cases where you can't use T::Sig#sig. T::Sig::WithoutRuntime.sig {params(arg0: T.nilable(Symbol), blk: T.proc.bind(T::Private::Methods::DeclBuilder).void).void} def self.sig(arg0=nil, &blk); end # rubocop:disable Lint/DuplicateMethods $VERBOSE = original_verbose end # Declares a method with type signatures and/or # abstract/override/... helpers. See the documentation URL on # {T::Helpers} T::Sig::WithoutRuntime.sig {params(arg0: T.nilable(Symbol), blk: T.proc.bind(T::Private::Methods::DeclBuilder).void).void} def sig(arg0=nil, &blk) T::Private::Methods.declare_sig(self, arg0, &blk) end end
Version data entries
167 entries across 167 versions & 1 rubygems