Module: T

Defined in:
lib/sorbet-runtime-stub.rb

Overview

typed: ignore

Defined Under Namespace

Modules: Array, Configuration, Enumerable, Enumerator, Generic, Hash, Helpers, Range, Set, Sig Classes: Proc

Constant Summary collapse

Boolean =
Object.new.freeze

Class Method Summary collapse

Class Method Details

.absurd(value) ⇒ Object



5
# File 'lib/sorbet-runtime-stub.rb', line 5

def absurd(value); end

.all(type_a, type_b, *types) ⇒ Object



6
# File 'lib/sorbet-runtime-stub.rb', line 6

def all(type_a, type_b, *types); end

.any(type_a, type_b, *types) ⇒ Object



7
# File 'lib/sorbet-runtime-stub.rb', line 7

def any(type_a, type_b, *types); end

.assert_type!(value, _type, _checked: true) ⇒ Object



18
19
20
# File 'lib/sorbet-runtime-stub.rb', line 18

def assert_type!(value, _type, _checked: true)
  value
end

.attached_classObject



8
# File 'lib/sorbet-runtime-stub.rb', line 8

def attached_class; end

.cast(value, _type, _checked: true) ⇒ Object



22
23
24
# File 'lib/sorbet-runtime-stub.rb', line 22

def cast(value, _type, _checked: true)
  value
end

.class_of(klass) ⇒ Object



9
# File 'lib/sorbet-runtime-stub.rb', line 9

def class_of(klass); end

.enum(values) ⇒ Object



10
# File 'lib/sorbet-runtime-stub.rb', line 10

def enum(values); end

.let(value, _type, _checked: true) ⇒ Object



26
27
28
# File 'lib/sorbet-runtime-stub.rb', line 26

def let(value, _type, _checked: true)
  value
end

.must(arg, _msg = nil) ⇒ Object



30
31
32
# File 'lib/sorbet-runtime-stub.rb', line 30

def must(arg, _msg = nil)
  arg
end

.nilable(type) ⇒ Object



11
# File 'lib/sorbet-runtime-stub.rb', line 11

def nilable(type); end

.noreturnObject



12
# File 'lib/sorbet-runtime-stub.rb', line 12

def noreturn; end

.procObject



34
35
36
# File 'lib/sorbet-runtime-stub.rb', line 34

def proc
  T::Proc.new
end

.reveal_type(value) ⇒ Object



38
39
40
# File 'lib/sorbet-runtime-stub.rb', line 38

def reveal_type(value)
  value
end

.self_typeObject



13
# File 'lib/sorbet-runtime-stub.rb', line 13

def self_type; end

.type_alias(type = nil, &_blk) ⇒ Object



14
# File 'lib/sorbet-runtime-stub.rb', line 14

def type_alias(type=nil, &_blk); end

.type_parameter(name) ⇒ Object



15
# File 'lib/sorbet-runtime-stub.rb', line 15

def type_parameter(name); end

.unsafe(value) ⇒ Object



42
43
44
# File 'lib/sorbet-runtime-stub.rb', line 42

def unsafe(value)
  value
end

.untypedObject



16
# File 'lib/sorbet-runtime-stub.rb', line 16

def untyped; end