From ad28f3a779867495e57bc5cde8b580b2a8716c04 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 26 Nov 2024 18:33:54 +0900 Subject: [PATCH] Remove `Kernel.with_yjit` class method --- kernel.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel.rb b/kernel.rb index 442fb4a0b6..f8ca908fa0 100644 --- a/kernel.rb +++ b/kernel.rb @@ -293,7 +293,7 @@ module Kernel # Internal helper for built-in initializations to define methods only when YJIT is enabled. # This method is removed in yjit_hook.rb. - def with_yjit(&block) # :nodoc: + private def with_yjit(&block) # :nodoc: if defined?(RubyVM::YJIT) RubyVM::YJIT.send(:add_yjit_hook, block) end