lib/lizarb/ruby/class.rb in lizarb-1.0.0 vs lib/lizarb/ruby/class.rb in lizarb-1.0.1
- old
+ new
@@ -1,7 +1,9 @@
# frozen_string_literal: true
class Class
+ public :eval
+
def descendants
ObjectSpace.each_object(Class).select { |klass| klass < self }
end
def first_namespace