Skip to content

Instantly share code, notes, and snippets.

@chalmagean
Created December 21, 2020 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chalmagean/e466cc3e263cde70f59591af900b0c23 to your computer and use it in GitHub Desktop.
Save chalmagean/e466cc3e263cde70f59591af900b0c23 to your computer and use it in GitHub Desktop.
# typed: true
class Printer
extend T::Sig
sig { params(person: Person).returns(String) }
def self.full_name(person); end
end
class Person
extend T::Sig
sig { params(fname: String, lname: String).void }
def initialize(fname, lname); end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment