J
Jesse van den Kieboom
Hi,
As Ruby claims to be very modular I'd like to do the following (I tried
some things but I think I'm going in the wrong directions).
I have my main Ruby application. The applications need to be extendible.
My idea is to write extra .rb files and put them in one directory. The
main app should somehow load those files to extend functionality. on
runtime the files can changes and the main app should be able to reload
the extensions. Also new files can be added and these should be reloaded
too.
I don't know the right approach to this problem. The external .rb files
somehow need to have access to parts of the main application and the
main application obviously needs to call functions from the external
files.
Users can communicatie with the main app telling it there are new
external files to be loaded, the name of the files and maybe function
names to be called or whatever. The idea is that I don't want to restart
the main application but do want to extend it on the flow.
Somebody with some great ideas how to achieve this?
Jesse van den Kieboom
As Ruby claims to be very modular I'd like to do the following (I tried
some things but I think I'm going in the wrong directions).
I have my main Ruby application. The applications need to be extendible.
My idea is to write extra .rb files and put them in one directory. The
main app should somehow load those files to extend functionality. on
runtime the files can changes and the main app should be able to reload
the extensions. Also new files can be added and these should be reloaded
too.
I don't know the right approach to this problem. The external .rb files
somehow need to have access to parts of the main application and the
main application obviously needs to call functions from the external
files.
Users can communicatie with the main app telling it there are new
external files to be loaded, the name of the files and maybe function
names to be called or whatever. The idea is that I don't want to restart
the main application but do want to extend it on the flow.
Somebody with some great ideas how to achieve this?
Jesse van den Kieboom