summaryrefslogtreecommitdiffstats
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
commit97e3bf36550b8951e5aa042edd1b828f36f1df32 (patch)
tree72a7f1f632c12c881fa959a929deea57bdc9d2c5 /lib/ostruct.rb
parent141fd2f1468e323002916890544f1a86d7aa8443 (diff)
downloadruby-97e3bf36550b8951e5aa042edd1b828f36f1df32.tar.gz
ruby-97e3bf36550b8951e5aa042edd1b828f36f1df32.tar.xz
ruby-97e3bf36550b8951e5aa042edd1b828f36f1df32.zip
* ostruct.rb: keep NoMethodError message with Ruby itself.
git-svn-id: http://svn.ruby-lang.org/repos/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 d806c7046..8bc0628ac 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