Created
March 17, 2009 06:47
-
-
Save deepthawtz/80357 to your computer and use it in GitHub Desktop.
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
# Adds the inheriting class to the list of subclasses in a position | |
# specified by the before and after methods. | |
# | |
# ==== Parameters | |
# klass<Class>:: The class inheriting from Merb::BootLoader. | |
# | |
# ==== Returns | |
# nil | |
# | |
# :api: plugin | |
def inherited(klass) | |
subclasses << klass.to_s | |
super | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment