A ruby port of @wilsonpage's Model