Corrected Ruby example

Corrected the Ruby example, which wouldn't run due to incorrect comment syntax in several places.