문제

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