summaryrefslogtreecommitdiff
path: root/lib/ostruct.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-15 16:12:43 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-15 16:12:43 +0000
commit8a442aa52ada40011e314676380a0e7c0011927e (patch)
tree72a7f1f632c12c881fa959a929deea57bdc9d2c5 /lib/ostruct.rb
parent3491b8a2cae670c020c83a9b8ffb73a75c080e3a (diff)
* 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
Diffstat (limited to 'lib/ostruct.rb')
-rw-r--r--lib/ostruct.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index d806c70..8bc0628 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