Extend Ruby functions.