Simulation of Snell's Law of refraction of light in Ruby.