-
-
Save edisonywh/ded504988eb711b362a2d801cf575914 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 Mystery | |
def resolved? | |
true | |
end | |
end | |
class Foo | |
extend Mystery | |
end | |
Foo.resolved? #=> true | |
Foo.singleton_class.instance_methods.grep(/resolved?/) #=> [:resolved?] | |
Foo.method(:resolved?) #=> #<Method: Class(Mystery)#resolved?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment