Module: T

Defined in:
lib/cli/ui/sorbet_runtime_stub.rb

Overview

typed: ignore frozen_string_literal: true

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



6
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 6

def absurd(value); end

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



7
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 7

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

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



8
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 8

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

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



19
20
21
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 19

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

.attached_classObject



9
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 9

def attached_class; end

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



23
24
25
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 23

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

.class_of(klass) ⇒ Object



10
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 10

def class_of(klass); end

.const_added(name) ⇒ Object



159
160
161
162
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 159

def const_added(name)
  super
  raise 'When using both cli-ui and sorbet, you must require sorbet before cli-ui'
end

.enum(values) ⇒ Object



11
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 11

def enum(values); end

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



27
28
29
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 27

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

.method_added(name) ⇒ Object



164
165
166
167
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 164

def method_added(name)
  super
  raise 'When using both cli-ui and sorbet, you must require sorbet before cli-ui'
end

.must(arg, _msg = nil) ⇒ Object



31
32
33
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 31

def must(arg, _msg = nil)
  arg
end

.nilable(type) ⇒ Object



12
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 12

def nilable(type); end

.noreturnObject



13
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 13

def noreturn; end

.procObject



35
36
37
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 35

def proc
  T::Proc.new
end

.reveal_type(value) ⇒ Object



39
40
41
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 39

def reveal_type(value)
  value
end

.self_typeObject



14
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 14

def self_type; end

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



15
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 15

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

.type_parameter(name) ⇒ Object



16
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 16

def type_parameter(name); end

.unsafe(value) ⇒ Object



43
44
45
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 43

def unsafe(value)
  value
end

.untypedObject



17
# File 'lib/cli/ui/sorbet_runtime_stub.rb', line 17

def untyped; end