Sha256: ad80fd70cb4e1c77e601933c221df31c01bafef363441686171111fcf7c87f9c
Contents?: true
Size: 444 Bytes
Versions: 6
Compression:
Stored size: 444 Bytes
Contents
# frozen_string_literal: true require "ruby-next/core" # Monkey-patch core classes using the same patches as for refinements RubyNext::Core.patches.extensions.each do |mod, patches| patches.each do |patch| next if patch.supported? if patch.prepend? mod.prepend(patch.to_module) else mod.module_eval(patch.body, *patch.location) end end end RubyNext::Core.strategy = :core_ext unless RubyNext::Core.core_ext?
Version data entries
6 entries across 6 versions & 1 rubygems