Update Ruby code generation
Merge pull request #277 from DylanLacey/master

Update Ruby code generation