freebsd-ports/devel/rubygem-polyglot/pkg-descr
Philip M. Gollucci 7b05323e04 - Mass fixup of WWW: lines pkg-descr based on rubygems.org Homepage meta info
Prompted by:    distilator
With Hat:       ruby@
Sponsored by:   RideCharge Inc. / TaxiMagic
2010-10-20 01:35:47 +00:00

15 lines
657 B
Text

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.
Required files are attempted first using the normal Ruby loader,
and if that fails, Polyglot conducts a search for a file having
a supported extension.
WWW: http://polyglot.rubyforge.org