Dmytr1K
4/11/2016 - 7:23 PM

Lesson 1

Lesson 1

bad_movies = Array[ 'Titanic', 'Cinderella' ]
good_movies = Array[ 'Matrix', 'Leon', 'Ghost' ]

movie = ARGV[0]

if good_movies.include?( movie )
  puts "#{movie} is a good movie"
elsif bad_movies.include?( movie )
  puts "#{movie} is a bad movie"
elsif movie
  puts "Haven't seen #{movie} yet"
end