Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use OpenStruct only if available (#562)
This commit uses OpenStruct only if available because of the following reasons: - Starting from Ruby 3.4.0dev, Using `ostruct` raises the following warning. > ostruct was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.5.0. Add ostruct to your Gemfile or gemspec. - And when the warning category is `:performance` it also raises this warning. > "OpenStruct use is discouraged for performance reasons Refer to https://bugs.ruby-lang.org/issues/20309 ruby/ruby#10428 ruby/ostruct#56 Fix #561
- Loading branch information