diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-05 02:32:49 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-05 02:32:49 +0000 |
commit | 4f364c6bf7f5bcc064b5a12b235fd63b200359a0 (patch) | |
tree | 057f7862f43f36e096a5037c9fcdcd1259a4c5d4 /ext/json/lib/json/add | |
parent | 1735892962c9e05ff679fc32f933a66141b2cbaf (diff) |
Update to JSON 1.1.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json/lib/json/add')
-rw-r--r-- | ext/json/lib/json/add/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/lib/json/add/core.rb b/ext/json/lib/json/add/core.rb index 7121a77ff1..4423e7ad75 100644 --- a/ext/json/lib/json/add/core.rb +++ b/ext/json/lib/json/add/core.rb @@ -96,7 +96,7 @@ class Struct def to_json(*args) klass = self.class.name - klass.nil? and raise JSON::JSONError, "Only named structs are supported!" + klass.to_s.empty? and raise JSON::JSONError, "Only named structs are supported!" { 'json_class' => klass, 'v' => values, |