We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e109d94 commit ff8e183Copy full SHA for ff8e183
lib/json/common.rb
@@ -48,7 +48,7 @@ def array_class_proc(array_class, on_load)
48
end
49
50
51
- # TODO: exact :create_additions support to another gem for version 3.0
+ # TODO: exctract :create_additions support to another gem for version 3.0
52
def create_additions_proc(opts)
53
if opts[:symbolize_names]
54
raise ArgumentError, "options :symbolize_names and :create_additions cannot be used in conjunction"
@@ -220,9 +220,9 @@ def self.create_id
220
Thread.current[:"JSON.create_id"] || 'json_class'
221
222
223
- NaN = 0.0/0
+ NaN = Float::NAN
224
225
- Infinity = 1.0/0
+ Infinity = Float::INFINITY
226
227
MinusInfinity = -Infinity
228
0 commit comments