Created
February 1, 2021 20:13
-
-
Save AhmedAliIbrahim/47eca927848d4849f3953681c65b3959 to your computer and use it in GitHub Desktop.
Allow Alien to talk to another Alien
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
class Alien | |
def can_talk_to?(character) | |
character.is_a?(Human) || character.is_a?(Alien) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment