Skip to content

Instantly share code, notes, and snippets.

@Nursultan91
Created February 21, 2018 17:56
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 Nursultan91/184d18a64385f37bc14425d37f065f60 to your computer and use it in GitHub Desktop.
Save Nursultan91/184d18a64385f37bc14425d37f065f60 to your computer and use it in GitHub Desktop.
Усложненная версия первого домашнего задания
good_movies = [ 'Matrix', 'GOT', 'Hobbit', 'LOTR', 'Batman' ]
bad_movies = [ 'Titanic', 'Terminator', 'Cloverfield', 'Vikings', 'WD' ]
bad_answer = bad_movies & ARGV
bad_answer.each { |ba| puts "#{ba} is a bad movie"}
good_answer = good_movies & ARGV
good_answer.each { |ga| puts "#{ga} is a good movie"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment