RubyModKit.transpile returns transpiled script. require "ruby_mod_kit" eval( RubyModKit.transpile(<<~RBM), class Foo getter @foo: Integer def initialize(@foo) end end ...
This is a Minecraft Mod which I originally created for adding the Ruby to the game, but it branched out and now I add other cool stuff along with rubies! This mod is for Fabric 1.20.4. I may update it ...