Lets consider I have a class inside a really long module path:
sux = Really::Long::Module::Path::Sucks.new
Could I somehow “import” this module in a way that I could just use the class without worrying writing this path every time I use it?
EDIT: I know being in the same module makes things easier. But I can’t be in the same module in this case.
Modules are an object in ruby, so you can just make a reference to the module that is shorter.