Created
July 8, 2011 10:01
-
-
Save postmodern/1071496 to your computer and use it in GitHub Desktop.
A bug in Module.methods with Ruby 1.8 and 1.9?
This file contains hidden or 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 Test | |
def Test.mytest | |
end | |
end | |
Test.methods(false) | |
# => ["mytest"] | |
Test.method_defined?("mytest") | |
# => false | |
Test.respond_to?("mytest") | |
# => true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment