Juan Zanos
5/29/2009 4:29:00 PM
On May 29, 2009, at 12:46 AM, Clifford Heath wrote:
> Caleb Clausen wrote:
>> To be endless in your own code, you must first require 'endless.rb',
>> then load files which are written endlessly using Endless.load,
>> rather
>> than the usual plain vanilla load (or require). (Endless.require
>> isn't
>> written yet, sorry.)
>
> Ouch. But this is a good candidate for using Polyglot. Just name
> your files .rbe, and when you require 'endless', it registers that
> extension with Polyglot to be used with the endless loader. Then
> you can just "require 'fred'", and it will endless-load "fred.rbe".
>
How would this work? Would endless.rb just load the polyglot gem
and automatically set itself up? So all you'd need to do is require
'endless' and
then make some rbe files?