Re: [Ruby] Intercommunication
Posted: Wed May 18, 2016 11:57 am
Tronic wrote:I want to also share this thing (a little magic?):
if you create a module and give it a name:
___SYSTEM___
it will work to the ruby interpreter level (main),
if you try to write the self function in a ruby module,
you'll see that it will not give you a RubyEdit instance,
but it will result in the 'main instance of the ruby interpreter',
then, in it add all your modules, classes, and codes that you want them declared before all things,
this solves the stress of adding new things to the whole Ruby Flowstone System
without having to take account of the order of creation of RubyEdit module,
so in short, everything that contains this module will always be loaded before anything else.
try it, and then tell me.
Finally had time to check it out.
module ___SYSTEM___
end
produces "class/module name must be CONSTANT" error
I assume you have a full Ruby install, maybe with $PATH variables set?