Format code block as ruby code