Last active
September 23, 2019 16:09
-
-
Save Prigin/d238cc585a47f941cd0b373d117f1994 to your computer and use it in GitHub Desktop.
mkdev task
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] | |
list = {"Titanic" => "Titanic is a bad movie", | |
"Matrix" => "Matrix is a good movie"} | |
if movie | |
res = list[movie] | |
if res | |
puts res | |
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