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