Created
December 28, 2018 16:13
-
-
Save zgfif/59a848dc94c8e52b0979249b117f7c3a to your computer and use it in GitHub Desktop.
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
class Arsenal | |
def self.hello | |
'Hello as class method!' | |
end | |
def mymy | |
'Arsen Wenger' | |
end | |
def hello | |
mymy | |
"Hello, from instance methods" | |
end | |
end | |
# p Arsenal.hello | |
p Arsenal.new.hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment