Respuesta :

tonb
Ah, this is ruby.

I believe you need the following construct:

fantastic_beasts.each do |animal,attribute|
Looks like you are trying to run some game script from fantastic beast