Created
July 21, 2014 17:17
-
-
Save weapp/618d67d4d1325b96fdc8 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 | |
class << self | |
def cls_method | |
"cls_method" | |
end | |
end | |
def ins_method | |
self.class.cls_method | |
end | |
end | |
puts Foo.new.ins_method |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment