Created
February 15, 2011 14:56
-
-
Save carols10cents/827612 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
module Foo | |
extend self | |
def a | |
"a" | |
end | |
def self.b | |
"b" | |
end | |
end | |
Foo.a # instance method | |
Foo.b # class method |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment