a simple ruby generator