Skip to content

Instantly share code, notes, and snippets.

@andreleoni
Created July 28, 2018 15:50
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 andreleoni/9b5694d959e176192f2459281770124e to your computer and use it in GitHub Desktop.
Save andreleoni/9b5694d959e176192f2459281770124e to your computer and use it in GitHub Desktop.
module WithSelfClass
class << self
def my_function
"Presenter"
end
end
end
class MyClassWithSelfClass
extend WithSelfClass
class << self
def call_my_func
my_function
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment