Ruby version of Pattern Library, by Jeremy Keith,