summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2010-08-07 01:37:34 +0200
committerFlorian Frank <flori@ping.de>2010-08-07 01:59:21 +0200
commitbec5586cd5318e722fd599263105fa56b0bbe3e1 (patch)
treebc6ebfd4297130aadb43f663ac8c238dc85a5831 /lib
parent310c96b4134f8c0f5d63822a25ccdbc83c30e86e (diff)
downloadjson-1.4.5.tar.gz
do not freeze to allow chaging defaultsv1.4.5
Diffstat (limited to 'lib')
-rw-r--r--lib/json/common.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/json/common.rb b/lib/json/common.rb
index c6a31c1..b530670 100644
--- a/lib/json/common.rb
+++ b/lib/json/common.rb
@@ -63,20 +63,20 @@ module JSON
end
self.state = generator::State
const_set :State, self.state
- const_set :SAFE_STATE_PROTOTYPE, State.new.freeze
+ const_set :SAFE_STATE_PROTOTYPE, State.new
const_set :FAST_STATE_PROTOTYPE, State.new(
:indent => '',
:space => '',
:object_nl => "",
:array_nl => "",
:max_nesting => false
- ).freeze
+ )
const_set :PRETTY_STATE_PROTOTYPE, State.new(
:indent => ' ',
:space => ' ',
:object_nl => "\n",
:array_nl => "\n"
- ).freeze
+ )
end
# Returns the JSON generator modul, that is used by JSON. This might be