Guest User

Untitled

a guest
Aug 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def self.all
  2. results = []
  3. ObjectSpace.each_object(Class) do |c|
  4. (results << c) if c.ancestors.include?(PullSource) && c != PullSource
  5. end
  6. results
  7. end
Add Comment
Please, Sign In to add comment