ring = %w\[one two three\].cycle puts ring.take(4) # one # two # three # one
-- James Edward Gray II, “10 Things You Didn't Know Ruby Could Do”