miscellaneous ruby utilities