* 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
Родитель 3491b8a2ca
Коммит 8a442aa52a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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