Examples ☰
Basic sig
Standard library
String + Symbol
Nilable array access
Reveal Type
Dead code
Method signature
Local inference
Pinning
Interface
Union
Intersection
Noreturn
Singleton class
Generic class
Generic method
Escape hatch
Proc
Void
Tuple and Shape
Custom command line args
(Toggle Vim keybindings)
class A extend T::Sig sig {params(x: Integer).returns(String)} def bar(x) x.to_s end end def main A.new.barr(91) # error: Typo! A.new.bar("91") # error: Type mismatch! end
Loading...
sorbet@stripe.com