# File lib/monkey/ext.rb, line 36 def each_module(&block) list = [] ObjectSpace.each_object(Class) { |c| list << c } list.each(&block) end