Slide 13
Slide 13 text
Ruby signature language (RBS)
• Describes the structure of Ruby programs
• Type of standard libraries
• Type of gems
• Type of your program
• Covers most of the Ruby programs
class Array[A]
include Enumerable[A, self]
def []=: (Integer, A) -> A
def []: (Integer) -> A?
def each: { (A) -> void } -> self
def partition: { (A) -> bool } ->
[Array[A], Array[A]]
...
end