Sha256: 46c1bad38365e8fb855854826f8511ee5670687601a3e1d8b6a2510204155668
Contents?: true
Size: 358 Bytes
Versions: 5
Compression:
Stored size: 358 Bytes
Contents
# frozen_string_literal: true def patch_json? require 'json' Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7') && Gem::Version.new(JSON::VERSION) < Gem::Version.new('2') rescue LoadError false end if patch_json? module JSON module_function def parse(source, opts = {}) Parser.new(source, **opts).parse end end end
Version data entries
5 entries across 5 versions & 1 rubygems