|
3
|
| Bryan Oakley · 技术社区 · 17 年前 |
|
|
1
4
foo_常量应该只提供foo.rb定义的模块、类或其他常量。 |
|
|
2
3
一种方法是使用 ObjectSpace
这样还可以在文件中定义多个模块。 |