Skip to content

Instantly share code, notes, and snippets.

@danielevans
Created January 5, 2013 00:28
Show Gist options
  • Save danielevans/4458781 to your computer and use it in GitHub Desktop.
Save danielevans/4458781 to your computer and use it in GitHub Desktop.
get_subclasses = lambda { |c|
c.subclasses.append(c.subclasses.map(&get_subclasses)).flatten
}
pp get_subclasses.call(ActionController::Base)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment