Sorbet syntax: Revision history

From wikinotes

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

14 May 2024

29 July 2023

  • curprev 01:1501:15, 29 July 2023Will talk contribs 4,319 bytes +127 →‎Tools
  • curprev 01:1401:14, 29 July 2023Will talk contribs 4,192 bytes +4,192 Created page with "The docs for sorbet are really, really good.<br> I'd probably just go there. = Basics = <blockquote> <source lang="ruby"> # person.rb class Person def create(name:, age:, object:); end def speak; "foo"; end end </source> = Common Cases = <blockquote> == attr_reader/writer/accessor == <blockquote> <source lang="ruby"> sig { returns(String) } attr_reader :name </source> </blockquote><!-- attr_reader/writer/accessor --> == include module == <blockquote> {| class="wi..."