DungeonGen.zoneFleshRuin is an array, it should be:
bool spawn = DungeonGen.zoneFleshRuin && !Main.hardMode;
also all code is commented and return true is at the beginning. It should look like that
public override bool CanSpawn(int x, int y, int type, Player spawnedOn)
{...