From 8a442aa52ada40011e314676380a0e7c0011927e Mon Sep 17 00:00:00 2001 From: nahi Date: Fri, 15 Nov 2002 16:12:43 +0000 Subject: * ostruct.rb: keep NoMethodError message with Ruby itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/ostruct.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ostruct.rb') diff --git a/lib/ostruct.rb b/lib/ostruct.rb index d806c70466..8bc0628ac4 100644 --- a/lib/ostruct.rb +++ b/lib/ostruct.rb @@ -30,7 +30,7 @@ class OpenStruct elsif args.length == 0 @table[mid] else - raise NoMethodError, "undefined method `#{mname}'", caller(1) + raise NoMethodError, "undefined method `#{mname}' for #{self}", caller(1) end end -- cgit v1.2.3