Created
July 28, 2018 15:50
-
-
Save andreleoni/9b5694d959e176192f2459281770124e to your computer and use it in GitHub Desktop.
This file contains 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
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