Updated the code blocks to detect Ruby as the language and enable syntax highlighting.