Polyglot provides a registry of file types that can be loaded by calling its improved version of ‘require’. Each file extension that can be handled by a custom loader is registered by calling Polyglot.register(“ext”, <class>), and then you can simply require “somefile”, which will find and load “somefile.ext” using your custom loader. This supports the creation of DSLs having a syntax that is most appropriate to their purpose, instead of abusing the Ruby syntax.
Polyglot provides a registry of file types that can be loaded by calling its improved version of ‘require’. Each file extension that can be handled by a custom loader is registered by calling Polyglot.register(“ext”, <class>), and then you can simply require “somefile”, which will find and load “somefile.ext” using your custom loader. This supports the creation of DSLs having a syntax that is most appropriate to their purpose, instead of abusing the Ruby syntax.
To install rb19-polyglot, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install rb19-polyglot
To see what files were installed by rb19-polyglot, run:
port contents rb19-polyglot
To later upgrade rb19-polyglot, run:
sudo port selfupdate && sudo port upgrade rb19-polyglot
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.