Merged in Ruby code generator from Victor Hugo Borja. Started with a copy of