Ray Tracer in (hopefully idiomatic) Ruby