阅读背景:

Ruby:有没有办法获得一个类的封闭模块const?

来源:互联网 

I'm doing some metaprogramming in Ruby, and I need to dynamically generate a sibling class inside of a module. In doing so, I want to call const_set on the module, but I don't know which Module constant to call that on until runtime. An example:I'm doing some metaprogramming in Ruby, and I n




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: