Skip to content

Commit

Permalink
Fix raise message in Module#instance_method
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Oct 1, 2013
1 parent ea98c15 commit 2163008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corelib/module.rb
Expand Up @@ -317,7 +317,7 @@ def instance_method(name)
var meth = self._proto['$' + name];
if (!meth || meth.rb_stub) {
#{raise NameError, "undefined method `wut' for class `#{name}'"};
#{raise NameError, "undefined method `#{name}' for class `#{self.name}'"};
}
return #{UnboundMethod.new(self, `meth`, name)};
Expand Down

0 comments on commit 2163008

Please sign in to comment.