Created
March 1, 2018 08:57
-
-
Save sevperez/64a3bd9e1842ab3d8268455e543d6fde 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 MyModule | |
def self.module_inspect_self | |
p self | |
end | |
end | |
class MyClass | |
def instance_inspect_self | |
p self | |
end | |
def self.class_inspect_self | |
p self | |
end | |
end | |
MyClass.class_inspect_self # MyClass | |
MyModule.module_inspect_self # MyModule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment