Skip to content

Commit f5c1b8c

Browse files
GrantBirkibyroot
authored andcommitted
use . over :: for consistency
1 parent 178d7bb commit f5c1b8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/json/common.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ def j(*objs)
10721072
end
10731073

10741074
objs.each do |obj|
1075-
puts JSON::generate(obj, :allow_nan => true, :max_nesting => false)
1075+
puts JSON.generate(obj, :allow_nan => true, :max_nesting => false)
10761076
end
10771077
nil
10781078
end
@@ -1087,7 +1087,7 @@ def jj(*objs)
10871087
end
10881088

10891089
objs.each do |obj|
1090-
puts JSON::pretty_generate(obj, :allow_nan => true, :max_nesting => false)
1090+
puts JSON.pretty_generate(obj, :allow_nan => true, :max_nesting => false)
10911091
end
10921092
nil
10931093
end

0 commit comments

Comments
 (0)