Sha256: 9b5722469e70b87b3d239b017667ae426c5f3657fa52760af97f67e1948598cb
Contents?: true
Size: 411 Bytes
Versions: 10
Compression:
Stored size: 411 Bytes
Contents
# frozen_string_literal: true require_relative "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
Version data entries
10 entries across 10 versions & 2 rubygems