Skip to content

Instantly share code, notes, and snippets.

@postmodern
Created July 8, 2011 10:01
Show Gist options
  • Save postmodern/1071496 to your computer and use it in GitHub Desktop.
Save postmodern/1071496 to your computer and use it in GitHub Desktop.
A bug in Module.methods with Ruby 1.8 and 1.9?
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