Skip to content

Commit

Permalink
Autoload GenericObject to avoid require ostruct warning in Ruby 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Apr 3, 2024
1 parent 35d435e commit b507f9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/json/common.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#frozen_string_literal: false
require 'json/version'
require 'json/generic_object'

module JSON
autoload :GenericObject, 'json/generic_object'

NOT_SET = Object.new.freeze
private_constant :NOT_SET

Expand Down

0 comments on commit b507f9e

Please sign in to comment.