secret
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10
module ObjectSpace
class << self
# Returns all the classes in the object space.
def classes
ObjectSpace.each_object(Module).select do |klass|
Class.class_eval { klass } rescue false
end
end
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.