From fdd8bdea8174835a5d83f561add9212e64f74cc0 Mon Sep 17 00:00:00 2001 From: Daisuke Aritomo Date: Tue, 16 Dec 2025 02:14:06 +0900 Subject: [PATCH] [ruby/erb] Freeze ERB::Compiler::TrimScanner::ERB_STAG (https://github.com/ruby/erb/pull/100) For Ractor compatibility. https://github.com/ruby/erb/commit/43f0876595 --- lib/erb/compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/erb/compiler.rb b/lib/erb/compiler.rb index 8a4d85c6ea..6d70288b4f 100644 --- a/lib/erb/compiler.rb +++ b/lib/erb/compiler.rb @@ -225,7 +225,7 @@ class ERB::Compiler # :nodoc: end end - ERB_STAG = %w(<%= <%# <%) + ERB_STAG = %w(<%= <%# <%).freeze def is_erb_stag?(s) ERB_STAG.member?(s) end