Skip to content

Instantly share code, notes, and snippets.

@waseem
Forked from mikebaldry/gist:1366593
Created November 15, 2011 10:00
Show Gist options
  • Save waseem/1366612 to your computer and use it in GitHub Desktop.
Save waseem/1366612 to your computer and use it in GitHub Desktop.
find subclasses
def self.all
results = []
ObjectSpace.each_object(Class) do |c|
(results << c) if c < PullSource
end
results
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment