Sha256: 4ea5ac39b039d1a291924e0593972853e6415cd21164b7d1936a1edd79654ee2

Contents?: true

Size: 443 Bytes

Versions: 4

Compression:

Stored size: 443 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 unless RubyNext::Core.core_ext?

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-next-core-0.9.2 lib/ruby-next/core_ext.rb
ruby-next-core-0.9.1 lib/ruby-next/core_ext.rb
ruby-next-core-0.9.0 lib/ruby-next/core_ext.rb
ruby-next-core-0.9.0.pre lib/ruby-next/core_ext.rb