Untested, balls to the walls, spiked out hackfest, but damned if that ain't pretty functional ruby code!