module T
Note that in particular because sigs are lazily evaluated and `T::Sig::WithoutRuntime.sig` never forces the sig block, we don't actually need implementations for anything that can only go inside the sig block.
Public Class Methods
all(type_a, type_b, *types)
click to toggle source
# File lib/t.rb, line 23 def self.all(type_a, type_b, *types); end
any(type_a, type_b, *types)
click to toggle source
# File lib/t.rb, line 19 def self.any(type_a, type_b, *types); end
assert_type!(value, type, checked: true)
click to toggle source
# File lib/t.rb, line 34 def self.assert_type!(value, type, checked: true); value; end
bind(value, type, checked: true)
click to toggle source
# File lib/t.rb, line 33 def self.bind(value, type, checked: true); value; end
cast(value, type, checked: true)
click to toggle source
# File lib/t.rb, line 31 def self.cast(value, type, checked: true); value; end
class_of(klass)
click to toggle source
# File lib/t.rb, line 27 def self.class_of(klass); end
enum(values)
click to toggle source
# File lib/t.rb, line 24 def self.enum(values); end
let(value, type, checked: true)
click to toggle source
# File lib/t.rb, line 32 def self.let(value, type, checked: true); value; end
must(arg, msg=nil)
click to toggle source
# File lib/t.rb, line 36 def self.must(arg, msg=nil); arg; end
nilable(type)
click to toggle source
# File lib/t.rb, line 20 def self.nilable(type); end
noreturn()
click to toggle source
# File lib/t.rb, line 22 def self.noreturn; end
proc()
click to toggle source
# File lib/t.rb, line 25 def self.proc; end
reveal_type(value)
click to toggle source
# File lib/t.rb, line 37 def self.reveal_type(value); value; end
self_type()
click to toggle source
# File lib/t.rb, line 26 def self.self_type; end
type_alias(type=nil, &blk)
click to toggle source
# File lib/t.rb, line 28 def self.type_alias(type=nil, &blk); end
type_parameter(name)
click to toggle source
# File lib/t.rb, line 29 def self.type_parameter(name); end
unsafe(value)
click to toggle source
# File lib/t.rb, line 35 def self.unsafe(value); value; end
untyped()
click to toggle source
# File lib/t.rb, line 21 def self.untyped; end