Skip to content

Instantly share code, notes, and snippets.

@zgfif
Created December 28, 2018 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zgfif/59a848dc94c8e52b0979249b117f7c3a to your computer and use it in GitHub Desktop.
Save zgfif/59a848dc94c8e52b0979249b117f7c3a to your computer and use it in GitHub Desktop.
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