Created
April 28, 2011 12:25
-
-
Save machisuji/946250 to your computer and use it in GitHub Desktop.
Override Method in Report::Result::Base
This file contains hidden or 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 Report::Result | |
| class Base | |
| def method_to_be_overriden # von mir hinzugefügte Methode | |
| end | |
| def group_by(...) # existierende Methode von Base | |
| ... | |
| method_to_be_overriden # Stelle #1 | |
| end | |
| end | |
| ... (DirectResult, WrappedResult) | |
| end |
This file contains hidden or 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 UsageReport::Result < Report::Result | |
| end |
This file contains hidden or 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 UsersReport::Result < UsageReport::Result | |
| class WrappedResult < UsageReport::Result::WrappedResult | |
| def method_to_be_overriden | |
| # wird offenbar nicht überschrieben (no superclass method ...) aber an Stelle #1 gerufen! | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whut?