我不明白为什么 ruby 会给我这个错误。这是代码。
def lookThere
lookAround = @warrior.look
lookAround.each do |npc|
if not npc.empty? and not npc.wall?
@npcRanged = @npcRangedList[npc.to_s()]
return
end
end
end