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

Version Path
ruby-next-core-0.8.0 lib/ruby-next/core_ext.rb
ruby-next-core-0.7.0 lib/ruby-next/core_ext.rb
ruby-next-core-0.6.0 lib/ruby-next/core_ext.rb
ruby-next-core-0.5.3 lib/ruby-next/core_ext.rb
ruby-next-core-0.5.2 lib/ruby-next/core_ext.rb
ruby-next-core-0.5.1 lib/ruby-next/core_ext.rb
ruby-next-core-0.5.0 lib/ruby-next/core_ext.rb
ruby-next-core-0.4.0 lib/ruby-next/core_ext.rb
ruby-next-0.3.0 lib/ruby-next/core_ext.rb
ruby-next-core-0.3.0 lib/ruby-next/core_ext.rb