Created
September 8, 2011 04:58
-
-
Save vderyagin/1202659 to your computer and use it in GitHub Desktop.
print names of all classes, that include Enumerable module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ObjectSpace.each_object(Class) do |klass| | |
puts klass.name if klass < Enumerable | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment