Sha256: 0f58b6c6a64fc51dddf5878042be7c1c25599c4991db4337867d13fb9565ef23
Contents?: true
Size: 550 Bytes
Versions: 14
Compression:
Stored size: 550 Bytes
Contents
# frozen_string_literal: true RubyNext::Core.patch Array, method: :deconstruct, version: "2.7" do <<~RUBY def deconstruct self end RUBY end # We need to hack `respond_to?` in Ruby 2.5, since it's not working with refinements if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6") RubyNext::Core.patch refineable: Array, name: "ArrayRespondToDeconstruct", method: :deconstruct, version: "2.7" do <<~RUBY def respond_to?(mid, *) return true if mid == :deconstruct super end RUBY end end
Version data entries
14 entries across 14 versions & 2 rubygems