In the case of Ruby2D, MRuby is used to create a set of "build" functionality which allows us to deploy .exe applications on Windows (I've not used it on Linux or MacOS, although it could be compiled on there too). To give an example of MRuby, this guy used it to build a game...