Electrons can be bumped up to higher energy levels by the injection of energy-for example, by a flash of light. When an electron drops from an outer to an inner level, "excess" energy is given off as light.
High-voltage electricity causes the quartz flash tube to emit an intense burst of light, exciting some of the atoms in the ruby crystal to higher energy levels