lib/rack/unreloader/reloader.rb
# Return a set of all classes in the ObjectSpace.
Return a set of all classes in the ObjectSpace.
Return a set of all classes in the ObjectSpace .
def all_classes
        rs = Set.new
        ::ObjectSpace.each_object(Module).each do |mod|
          if !(mod.name rescue next).to_s.empty? && monitored_module?(mod)
            rs << mod
          end
        end
        rs
      end
def all_classes rs = Set . new :: ObjectSpace . each_object ( Module ) . each do | mod | if ! ( mod . name rescue next ) . to_s . empty? && monitored_module? ( mod ) rs << mod end end rs end
Return a set of all classes in the ObjectSpace.
Return a set of all classes in the ObjectSpace .