./devel/ruby-polyglot, Registry of file types to load with its improved version of require

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2021Q2, Version: 0.3.5, Package name: ruby26-polyglot-0.3.5, Maintainer: pkgsrc-users

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 callingPolyglot.register("ext", <class>),
and then you can simply require "somefile", which will find and load
"somefile.ext" using your custom loader.


Master sites:

SHA1: 7fcefa7d3b605d9c51304a4d65e0b8fae04970de
RMD160: 8f5260ffec2774621d474a40824ae24bc806112e
Filesize: 8 KB

Version history: (Expand)