diff options
author | Florian Frank <flori@ping.de> | 2009-10-21 12:36:13 +0200 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2009-10-26 22:58:08 +0100 |
commit | ac628582df3e55c1a2a75ca6b5a49af447e52022 (patch) | |
tree | dced192bf63bc157abb37ce3390bb887e7167ee9 /lib/json/common.rb | |
parent | e837a02041d3bde8429ecb12c1c550c39b99ac93 (diff) | |
download | json-ac628582df3e55c1a2a75ca6b5a49af447e52022.tar.gz |
optimised pure variant a bit, prepared for ext
Diffstat (limited to 'lib/json/common.rb')
-rw-r--r-- | lib/json/common.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/json/common.rb b/lib/json/common.rb index f9f6e00..4e2e41d 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -178,7 +178,7 @@ module JSON else state = State.new end - state.encode(obj) + state.generate(obj) end # :stopdoc: @@ -230,7 +230,7 @@ module JSON end state.configure(opts) end - state.encode(obj) + state.generate(obj) end # :stopdoc: |