Created
June 23, 2009 22:09
-
-
Save texel/134879 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 MyClass | |
def self.foo | |
'bar' | |
end | |
end | |
module Bazify | |
def foo | |
'baz' + super | |
end | |
def baz | |
'qux' | |
end | |
end | |
MyClass.foo | |
MyClass.extend Bazify | |
MyClass.foo | |
MyClass.baz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment