Robert Klemme wrote:
> irb(main):001:0> class Module
> irb(main):002:1>   def your_extend(mod)
> irb(main):003:2>     extend mod
> irb(main):004:2>     mod.constants.each do |co|
> irb(main):005:3*       const_set(co, mod.const_get(co))
> irb(main):006:3>     end
> irb(main):007:2>   end
> irb(main):008:1> end
> => nil
wow
Thanks!
-- 
Posted via http://www.ruby-forum.com/.