Skip to content

Instantly share code, notes, and snippets.

@zgfif zgfif/method.rb
Created Dec 28, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.