ruby clone of @gleitz howdoi