-
-
Save radar/bcfecba3970ac640b46b 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
class Formula | |
@subclasses = [] | |
def self.inherited(base) | |
@subclasses << base | |
end | |
def self.subclasses | |
@subclasses | |
end | |
end | |
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
Formula.subclasses |
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
class Thing < Formula | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment