In python, to dynamically load a module, you can simply use the _____import_____ statement and assign the module to a variable, I.e(from the docs):
spam = __import__('spam', globals(), locals(), [], -1)
I have used this several times in python in order to simulate dynamic module loading/unloading, because to "unload" the module, you can simply remove all references to it, I.e:
spam = None
Is there an equivalent to this in Ruby? I looked at a few other questions (this, this, and this), but I wanted to know a way to constrain a loaded module to a variable, if possible.