Created
September 23, 2019 16:54
-
-
Save Prigin/ddbc8983bf3e53d9161d202d3fe9ab76 to your computer and use it in GitHub Desktop.
mkdev
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
movie = ARGV[0] | |
goodlist = ["Braveheart", "Matrix", "Lord os the Rings"] | |
badlist = ["Twilight", "Titanic"] | |
if movie | |
if goodlist.include?(movie) | |
puts "#{movie} is pretty good." | |
elsif badlist.include?(movie) | |
puts "#{movie} is not worth watching." | |
else | |
puts "Haven't seen #{movie} yet" | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment