Last active
November 25, 2019 14:30
-
-
Save Schwad/6a39abf38b2c35280f5ad8783403b13d to your computer and use it in GitHub Desktop.
@apotonick Tesla Truck implementation
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
module Tesla | |
module Truck | |
module Destroyer | |
def self.call(human_name:) | |
puts "Das #{human_name} wurde zerstört." | |
end | |
end | |
end | |
end | |
Tesla::Truck::Destroyer.call(human_name: 'nick') | |
#=> Das nick wurde zerstört. |
call(human_name:, pronoun: Pronouner.new(:they))
?
Great point! I like defaulting to `:they` in the pronoun argument as well.
I don't see a gem that does this at the moment so I think I'll have to
build it and ship it before we require it in the gist
…On Mon, 25 Nov 2019 at 14:24, Nick Sutterer ***@***.***> wrote:
call(human_name:, pronoun: Pronouner.new(:they)) ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/6a39abf38b2c35280f5ad8783403b13d?email_source=notifications&email_token=AB4AFRSA67QZOPJI4HFPJCTQVPNZHA5CNFSM4JQ7ASPKYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF4YEW#gistcomment-3092555>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4AFRXZ7525AVLU3XFJ3IDQVPNZHANCNFSM4JQ7ASPA>
.
😹
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great work! 💪 a 3rd party gem that receives the pronoun should compute the article - this would avert any drama/criticism on incorrect assumption of the person targeted by your code!