Sha256: 93773c074fbf850a77801558146d4ccac86e8d8b004655e157282661c3022f1c
Contents?: true
Size: 509 Bytes
Versions: 18
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true require "ruby-next/config" require "ruby-next/setup_self" 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.send(: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
18 entries across 18 versions & 1 rubygems