-
-
Save alanwillms/0f96b0a768d5d107aa6e 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 SomeLength | |
def responds | |
responds_to?(:foobar) # fails here | |
end | |
end | |
class Items | |
extend SomeLength | |
def self.foobar | |
"Any return" | |
end | |
end | |
puts Items.responds.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment