diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-12-22 20:23:59 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-12-22 20:23:59 +0900 |
commit | 5910beff3fc932a6a62dcd214583041e119da082 (patch) | |
tree | 4232e9d505fa068f168038f797b1a442ed3b2362 | |
parent | ea58503ee5ea96dece5abe0d582c258a6a11840e (diff) | |
download | json-5910beff3fc932a6a62dcd214583041e119da082.tar.gz |
Added backword compatible for < json-2.5
-rw-r--r-- | lib/json/common.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/json/common.rb b/lib/json/common.rb index 3e390f2..ea46896 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -72,6 +72,8 @@ module JSON self.state = generator::State const_set :State, self.state const_set :SAFE_STATE_PROTOTYPE, State.new # for JRuby + const_set :FAST_STATE_PROTOTYPE, create_fast_state + const_set :PRETTY_STATE_PROTOTYPE, create_pretty_state ensure $VERBOSE = old end |