Ruby solution to the g()('al') challenge