In Python, you can set an alias for a module with ‘as’:
import mymodule as mm
But I can’t seem to find an equivalent for ruby. I know that you can include rather than require a module, but this risks namespace collisions. Is there any equivalent to Python module aliases?
Modules in Ruby aren’t really that special, so you can just assign them to another constant: