Format ruby document.