In ruby, is there anything like using?

时间:2015-07-28 23:02:32

标签: ruby

Some class are defined using module to create namespace. I am wondering if Ruby has the mechanism like using to use the namespace?

in CSharp, we could

using ****

How to do it in Ruby?

1 个答案:

答案 0 :(得分:3)

If you want namespaces you could use ruby's modules here you have documentation about that.

And here you'll find some examples to use as namespaces