Created
May 28, 2019 07:32
-
-
Save lmduc/f4b3dc56fb999480c15839ff2864263d to your computer and use it in GitHub Desktop.
test singleton class
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
def A | |
def say | |
p "in A" | |
end | |
end | |
a = A.new | |
def a.say | |
p "in singleton" | |
end | |
a.say | |
b = A.new | |
b.say |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment