1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nahi 2002-11-15 16:12:43 +00:00
parent 3491b8a2ca
commit 8a442aa52a

View file

@ -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