lib/procemon/mpatch/class.rb in procemon-0.0.4 vs lib/procemon/mpatch/class.rb in procemon-0.0.5

- old
+ new

@@ -24,10 +24,14 @@ end # Iterates over all subclasses (direct and indirect) def each_subclass ObjectSpace.each_object(Class) { | candidate | - yield candidate if candidate < self + begin + yield candidate if candidate < self + rescue ArgumentError + # comparison of Class with Class failed (ArgumentError) + end } end # Returns an Array of subclasses (direct and indirect) def subclasses \ No newline at end of file