[Ruby] Grammar fix.
Indentations and forgotten ends.