Handy extensions to core Ruby classes