Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save louisebolden/1aee001371f6e4c4dbc285884886fc29 to your computer and use it in GitHub Desktop.
Save louisebolden/1aee001371f6e4c4dbc285884886fc29 to your computer and use it in GitHub Desktop.
# a Person type declared in sig/person.rbs
class Person
@name: String
@contacts: Array[Email]
def initialize: (name: String) -> untyped
def name: -> String
def contacts: -> Array[Email]
end
# an Email type declared in sig/email.rbs (and referenced on lines 4 and 8 above)
class Email
@address: String
def initialize: (address: String) -> untyped
def address: -> String
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment