diff options
Diffstat (limited to 'lib/ostruct.rb')
-rw-r--r-- | lib/ostruct.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb index a5c51022d4..d806c70466 100644 --- a/lib/ostruct.rb +++ b/lib/ostruct.rb @@ -30,7 +30,7 @@ class OpenStruct elsif args.length == 0 @table[mid] else - raise NameError, "undefined method `#{mname}'", caller(1) + raise NoMethodError, "undefined method `#{mname}'", caller(1) end end @@ -42,7 +42,7 @@ class OpenStruct str = "<#{self.class}" for k,v in @table str += " " - str += k + str += k.to_s str += "=" str += v.inspect end |