lib/rack/unreloader/reloader.rb
def monitored_module?(mod)
        @classes.any? do |c|
          c = constantize(c) rescue false

          if mod.is_a?(Class)
            # Reload the class if it is a subclass if the current class
            (mod < c) rescue false
          elsif c == Object
            # If reloading for all classes, reload for all modules as well
            true
          else
            # Otherwise, reload only if the module matches exactly, since
            # modules don't have superclasses.
            mod == c
          end
        end
      end
# Return whether the given klass is a monitored class that could
# be unloaded.
Return whether the given klass is a monitored class that could
be unloaded.
Return whether the given klass is a monitored class that could be unloaded .
def monitored_module?(mod)
        @classes.any? do |c|
          c = constantize(c) rescue false
          if mod.is_a?(Class)
            (mod < c) rescue false
          elsif c == Object
            true
          else
            mod == c
          end
        end
      end
def monitored_module? ( mod ) @classes . any? do | c | c = constantize ( c ) rescue false if mod . is_a? ( Class ) ( mod < c ) rescue false elsif c == Object true else mod == c end end end
Return whether the given klass is a monitored class that could
be unloaded.
Return whether the given klass is a monitored class that could be unloaded .
# Reload the class if it is a subclass if the current class # If reloading for all classes, reload for all modules as well # Otherwise, reload only if the module matches exactly, since # modules don't have superclasses.
mod