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:
parent
3491b8a2ca
commit
8a442aa52a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue