Sha256: 300638ced1258f1ceb524b1871e8f31befee0ad08c28fcc3aac5ba2c30451b15

Contents?: true

Size: 502 Bytes

Versions: 2

Compression:

Stored size: 502 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.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

2 entries across 2 versions & 1 rubygems

Version Path
ruby-next-core-0.11.1 lib/ruby-next/core_ext.rb
ruby-next-core-0.11.0 lib/ruby-next/core_ext.rb