Created
June 7, 2021 11:17
-
-
Save louisebolden/1aee001371f6e4c4dbc285884886fc29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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