Stripe pattern creator in Ruby