arr = %w(vietnam china japan)
arr.exclude?('usa') -> true
arr.exclude?('china') -> false
Step -1
arr = ['Cat', 'Dog', 'Bird']
hash = arr.map {|x| [x,true]}.to_h
=> {"Cat"=>true, "Dog"=>true, "Bird"=>true}
hash["Dog"]
=> true
hash["Insect"]
=> false
['Cat', 'Dog', 'Bird'].index('Dog')
>> ['Cat', 'Dog', 'Bird'].include? 'Dog'
=> true