Created
September 17, 2009 10:06
-
-
Save jabley/188434 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 Foo | |
def self.logger | |
# create logger here | |
end | |
def logger | |
Foo.logger | |
end | |
end | |
class Bar < Foo | |
def take_over_the_world | |
logger.info "Try to take over the world!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment