[ruby/json] use .
over ::
for consistency
https://github.com/ruby/json/commit/f5c1b8c45d
This commit is contained in:
parent
dc69bebde7
commit
9b25023fe4
@ -1072,7 +1072,7 @@ module ::Kernel
|
||||
end
|
||||
|
||||
objs.each do |obj|
|
||||
puts JSON::generate(obj, :allow_nan => true, :max_nesting => false)
|
||||
puts JSON.generate(obj, :allow_nan => true, :max_nesting => false)
|
||||
end
|
||||
nil
|
||||
end
|
||||
@ -1087,7 +1087,7 @@ module ::Kernel
|
||||
end
|
||||
|
||||
objs.each do |obj|
|
||||
puts JSON::pretty_generate(obj, :allow_nan => true, :max_nesting => false)
|
||||
puts JSON.pretty_generate(obj, :allow_nan => true, :max_nesting => false)
|
||||
end
|
||||
nil
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user