Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> if I use modules for name-spacing, it will always be "MyModule::MyClass" everywhere

It will be identified as such by e.g. the default `inspect`, but nothing stops you from `include`-ing MyModule into another module or class, or even the global scope so that you can reference MyClass without MyModule.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: