Skip to content

Commit

Permalink
Merge pull request #577 from tompng/autoload_generic_object
Browse files Browse the repository at this point in the history
Autoload JSON::GenericObject to avoid require ostruct warning in Ruby 3.4
  • Loading branch information
hsbt committed Apr 4, 2024
2 parents 84b7517 + b507f9e commit cdbcbd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/json/common.rb
@@ -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 cdbcbd0

Please sign in to comment.