Вопрос

I understand that you can accomplish namespacing in Ruby using modules.

However, sufficiently lengthy namespaces can make code very un-readable. in C++ this is solved with the using declaration

What is the ruby equivalent of a c++ using declaration?

Это было полезно?

Решение

It is include.

include Some::Lengthy::Module::NameSpace
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top