Add new lines to the Ruby classes

In some places are missing new line characters at the end of the class.
Changed after review.