Just for fun--project coding game generator in Ruby for RPG Maker?

I’m trying to teach myself coding with Ruby and making video games, and RPG Maker is fairly flexible game building software that could allow me to test out some of my smaller Ruby projects.

I was wondering, if I wanted to build an engine that allowed me to build games in another programming language, say, Javascript or Java maybe and then port them to Ruby Game Scripting Language as a text file, where would I start?

I know it’s probably a complicated project, but I’m trying to learn coding, so maybe it would be worth it?

If you think it’s unnecessary if I’m just looking for a resource that will help me switch between programming languages, please provide links to already existing open source engines.