I have a sinatra web application and a C ++ library that I can “require” in a sinatra (ruby) using the bindings created by swig,
I also have a second, very similar library, in which the function names are partially the same as in the first. When I demand both of them, the one that is loaded first wins, i.e. Calls to ambiguous function names are always mapped to this library.
The reason is that "require" loads only those things that are not loaded yet, while "load" reloads no matter what. However, the “download” does not seem to apply to .so files, only to ruby source files. Any help?
thanks
ruby swig require load sinatra
AM
source share