Well, this limitation can be circumvented by runnning the following
after each change in MyModule:
ObjectSpace.each_object(Module) do |m|
if m <= Enumerable
m.module_eval("include MyModule")
end
end
In order to understand the drawbacks of this solution, I suggest reading
http://ola-bini.blogspot.com/2007/07/objectspace-to-have-or-not-to-have.html
--
Posted via http://www.ruby-forum.com/.